You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/01/21 13:37:57 UTC

[GitHub] [iotdb] zhanglingzhe0820 opened a new issue #2549: 乱序合并时当一个乱序文件startTime=一个顺序文件endTime时,这个乱序文件被合并到后一个顺序文件(When execute merge, with an unseq-file's startTime=a seq-file's endTime, the unseq file is merged into the next seq file)

zhanglingzhe0820 opened a new issue #2549:
URL: https://github.com/apache/iotdb/issues/2549


   当一个乱序文件的数据与一个顺序文件的最后一个时间戳重叠时,不会合并当前乱序的文件的时间戳,而会将其合并到后一个文件去,导致这个点的数据重叠。
   例如,执行如下命令,
         statement.execute(String
             .format("INSERT INTO root.mergeTest(timestamp,s1) VALUES (%d,%d)", 1, 1));
         statement.execute(String
             .format("INSERT INTO root.mergeTest(timestamp,s1) VALUES (%d,%d)", 2, 2));
         statement.execute("FLUSH");
         statement.execute(String
             .format("INSERT INTO root.mergeTest(timestamp,s1) VALUES (%d,%d)", 5, 5));
         statement.execute(String
             .format("INSERT INTO root.mergeTest(timestamp,s1) VALUES (%d,%d)", 6, 6));
         statement.execute("FLUSH");
         statement.execute(String
             .format("INSERT INTO root.mergeTest(timestamp,s1) VALUES (%d,%d)", 2, 3));
         statement.execute(String
             .format("INSERT INTO root.mergeTest(timestamp,s1) VALUES (%d,%d)", 3, 3));
         statement.execute("FLUSH");
   最后结果为两个顺序文件
   第一个顺序文件时间范围:[1,2]
   第二个顺序文件时间范围:[2,6]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [iotdb] JackieTien97 closed issue #2549: 乱序合并时当一个乱序文件startTime=一个顺序文件endTime时,这个乱序文件被合并到后一个顺序文件(When execute merge, with an unseq-file's startTime=a seq-file's endTime, the unseq file is merged into the next seq file)

Posted by GitBox <gi...@apache.org>.
JackieTien97 closed issue #2549:
URL: https://github.com/apache/iotdb/issues/2549


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [iotdb] JackieTien97 closed issue #2549: 乱序合并时当一个乱序文件startTime=一个顺序文件endTime时,这个乱序文件被合并到后一个顺序文件(When execute merge, with an unseq-file's startTime=a seq-file's endTime, the unseq file is merged into the next seq file)

Posted by GitBox <gi...@apache.org>.
JackieTien97 closed issue #2549:
URL: https://github.com/apache/iotdb/issues/2549


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org