You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "刘珍 (Jira)" <ji...@apache.org> on 2022/07/06 08:31:00 UTC

[jira] [Commented] (IOTDB-2773) [Query] java.io.IOException: overlapped data should be consumed first

    [ https://issues.apache.org/jira/browse/IOTDB-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563054#comment-17563054 ] 

刘珍 commented on IOTDB-2773:
---------------------------

0.12 ffacd3f25965bdc2e1aca176bceae3d7ebab01b6 没复现出存在的问题。
max_number_of_points_in_page=2,关合并

insert into root.sg1.d1(time, s1) values(1, 1.0);
insert into root.sg1.d1(time, s1) values(2, 2.0);
insert into root.sg1.d1(time, s1) values(6, 2.0);
insert into root.sg1.d1(time, s1) values(7, 2.0);
flush;
insert into root.sg1.d1(time, s1) values(8, 8.0);
insert into root.sg1.d1(time, s1) values(9, 9.0);
insert into root.sg1.d1(time, s1) values(10, 10.0);
insert into root.sg1.d1(time, s1) values(11, 11.0);
flush;
insert into root.sg1.d1(time, s1) values(13, 13.0);
flush;
insert into root.sg1.d1(time, s1) values(4, 4.0);
insert into root.sg1.d1(time, s1) values(12, 12.0);
flush;

> [Query] java.io.IOException: overlapped data should be consumed first
> ---------------------------------------------------------------------
>
>                 Key: IOTDB-2773
>                 URL: https://issues.apache.org/jira/browse/IOTDB-2773
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Core/Query
>    Affects Versions: 0.13.0
>            Reporter: 刘珍
>            Assignee: Yuan Tian
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2022-03-21-09-52-02-258.png
>
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> iotdb版本 0.13  rc1
> 问题描述:
>     关合并0.12/0.13.0 rc1 生成的数据,有乱序。拿到0.12.5 rc1 和0.13 rc1 上分别执行查询(查询的时候,iotdb也都关合并),0.12.5 rc1 查询正确。
>     0.13 rc1 查询报错,报错信息为:
> 2022-03-21 09:17:57,026 [pool-13-IoTDB-RPC-Client-1] {color:#DE350B}*WARN  *{color}o.a.i.d.u.ErrorHandlingUtils:61 - Status code: INTERNAL_SERVER_ERROR(500), operation: "SELECT max_time(s_213) FROM root.test.g_6.d_26 WHERE time >= 1537372800000 AND time <= 1537422800000". executeStatement failed
> java.util.concurrent.ExecutionException: java.io.IOException: overlapped data should be consumed first
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>         at org.apache.iotdb.db.service.thrift.impl.TSServiceImpl.submitQueryTask(TSServiceImpl.java:785)
>         at org.apache.iotdb.db.service.thrift.impl.TSServiceImpl.executeStatement(TSServiceImpl.java:619)
>         at org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeStatement.getResult(TSIService.java:2853)
>         at org.apache.iotdb.service.rpc.thrift.TSIService$Processor$executeStatement.getResult(TSIService.java:2833)
>         at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
>         at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:248)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: overlapped data should be consumed first
>         at org.apache.iotdb.db.query.reader.series.SeriesReader.isPageOverlapped(SeriesReader.java:657)
>         at org.apache.iotdb.db.query.reader.series.SeriesAggregateReader.canUseCurrentPageStatistics(SeriesAggregateReader.java:148)
>         at org.apache.iotdb.db.query.executor.AggregationExecutor.aggregatePages(AggregationExecutor.java:528)
>         at org.apache.iotdb.db.query.executor.AggregationExecutor.aggregateFromReader(AggregationExecutor.java:419)
>         at org.apache.iotdb.db.query.executor.AggregationExecutor.aggregateOneSeries(AggregationExecutor.java:318)
>         at org.apache.iotdb.db.query.executor.AggregationExecutor.aggregateOneSeries(AggregationExecutor.java:195)
>         at org.apache.iotdb.db.query.executor.AggregationExecutor.executeWithoutValueFilter(AggregationExecutor.java:149)
>         at org.apache.iotdb.db.query.executor.QueryRouter.aggregate(QueryRouter.java:123)
>         at org.apache.iotdb.db.qp.executor.PlanExecutor.processDataQuery(PlanExecutor.java:630)
>         at org.apache.iotdb.db.qp.executor.PlanExecutor.processQuery(PlanExecutor.java:258)
>         at org.apache.iotdb.db.service.basic.ServiceProvider.createQueryDataSet(ServiceProvider.java:264)
>         at org.apache.iotdb.db.service.thrift.impl.TSServiceImpl.executeQueryPlan(TSServiceImpl.java:821)
>         at org.apache.iotdb.db.service.thrift.impl.TSServiceImpl.access$000(TSServiceImpl.java:163)
>         at org.apache.iotdb.db.service.thrift.impl.TSServiceImpl$QueryTask.call(TSServiceImpl.java:221)
>         at org.apache.iotdb.db.service.thrift.impl.TSServiceImpl$QueryTask.call(TSServiceImpl.java:165)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         ... 3 common frames omitted
> 0.12.5 rc1 执行结果是
>  !image-2022-03-21-09-52-02-258.png! 
> 问题2,这个日志,应该是error级别,不应该是warn级别。
> 测试环境:
> 192.168.10.68
> iotdb路径
> /data/liuzhen_test/weekly_0127/13_rc1
> 数据备份在/data/benchmark/weekly_shell/rel_13_rc1_data_bk/data_1_luanxu
> 查询语句:SELECT max_time(s_212) FROM root.test.g_2.d_12 WHERE time >= 1537372800000 AND time <= 1537422800000



--
This message was sent by Atlassian Jira
(v8.20.10#820010)