Eric Pai created IOTDB-3364:
-------------------------------

             Summary: Query stucked with null valued aligned timeseries
                 Key: IOTDB-3364
                 URL: https://issues.apache.org/jira/browse/IOTDB-3364
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Engine, Core/Query
            Reporter: Eric Pai
             Fix For: master branch
         Attachments: image-2022-06-01-11-00-54-775.png, 
image-2022-06-01-11-03-19-109.png

Repeat steps:

1. Create an aligned timeseries:

 
{code:java}
create aligned timeseries root.sg.d1(s1 int32); {code}
2. Insert with null value:

 

 
{code:java}
insert into root.sg.d1(time, s1) aligned values(1400, null); {code}
 

3. Select directly WITHOUT restarting the server.
{code:java}
select * from root.sg.d1; {code}
We can see that the select request is stucked and never ends.

!image-2022-06-01-11-03-19-109.png!

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.

!image-2022-06-01-11-00-54-775.png!



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to