Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-319

java deadlock (not sure how to reproduce)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • None

    Description

      Hi, 

      my colleague gives me an IoTDB instance which has no response for "select " SQL.

      (but for Schema query sql, it works).

      I used jstack to check the process and find a deadlock, you can get the detailed info in the attachment.

       

      Found one Java-level deadlock:
      =============================
      "pool-2-IoTDB-JDBC-Client-thread-16":
      waiting to lock monitor 0x00007fdab800ff68 (object 0x00000003c7163218, a org.apache.iotdb.db.query.control.FileReaderManager),
      which is held by "pool-2-IoTDB-JDBC-Client-thread-3"
      "pool-2-IoTDB-JDBC-Client-thread-3":
      waiting for ownable synchronizer 0x00000003c6106f40, (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync),
      which is held by "MergeThread-0"
      "MergeThread-0":
      waiting to lock monitor 0x00007fdab800ff68 (object 0x00000003c7163218, a org.apache.iotdb.db.query.control.FileReaderManager),
      which is held by "pool-2-IoTDB-JDBC-Client-thread-3"

       

       

      Attachments

        1. deadlock.out
          71 kB
          xiangdong Huang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jixuan1989 xiangdong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m