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

Bug about threadlocal field in TSServiceImpl.java

    XMLWordPrintableJSON

Details

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

    Description

      There are two fields named queryStatus and queryRet:

      private ThreadLocal<HashMap<String, PhysicalPlan>> queryStatus = new ThreadLocal<>();
      private ThreadLocal<HashMap<String, QueryDataSet>> queryRet = new ThreadLocal<>();
      

      They are used to save the PhysicalPlan and QueryDataSet of one query. However, the keys of both are sql string to be executed, so if the client execute the same sql in one connection, no matter whether the first execution has finished, the second sql execution will clear the first one's QueryDataSet.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jackietien Yuan Tian
              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