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

Query stucked with null valued aligned timeseries

    XMLWordPrintableJSON

Details

    • 2022-5-QueryExecution

    Description

      Repeat steps:

      1. Create an aligned timeseries:

      create aligned timeseries root.sg.d1(s1 int32); 

      2. Insert with null value:

      insert into root.sg.d1(time, s1) aligned values(1400, null); 

      3. Select directly WITHOUT restarting the server.

      select * from root.sg.d1; 

      We can see that the select request is stucked and never ends.

      My brief debug can see that the query is trapped in an infinite loop at

      https://github.com/apache/iotdb/blob/master/server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesReader.java#L339-L341

      For a deeper debugging, the Statistics of firstTimeseriesMetadata may be the suspect? I'm not sure whether it's the root cause.

      Attachments

        1. image-2022-06-01-11-00-54-775.png
          318 kB
          Eric Pai
        2. image-2022-06-01-11-03-19-109.png
          130 kB
          Eric Pai

        Activity

          People

            jackietien Yuan Tian
            ericpai Eric Pai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: