Hi, I have fixed this issue in PR#593
https://github.com/apache/incubator-iotdb/pull/593 This PR is submitted to rel/0.9 and could be released in 0.9.1. Thanks, -- Jialin Qiao School of Software, Tsinghua University 乔嘉林 清华大学 软件学院 -----原始邮件----- 发件人: "Jialin Qiao (Jira)" <[email protected]> 发送时间: 2019-11-28 14:16:00 (星期四) 收件人: [email protected] 抄送: 主题: [jira] [Created] (IOTDB-324) Inaccurate Statistics when write batch Jialin Qiao created IOTDB-324: --------------------------------- Summary: Inaccurate Statistics when write batch Key: IOTDB-324 URL: https://issues.apache.org/jira/browse/IOTDB-324 Project: Apache IoTDB Issue Type: Bug Affects Versions: 0.9.0 Reporter: Jialin Qiao When writing a batch in ChunkWriterImpl, the statistics are updated without considering the batchSize. When writing a 100 size array, batch size is 90, the last 10 points is also calculated in the Statistics. In ChunkWirterImpl: ``` public void write(long[] timestamps, double[] values, int batchSize) { this.maxTimestamp = timestamps[batchSize - 1]; valueCountInOnePage += batchSize; if (minTimestamp == Long.MIN_VALUE) { minTimestamp = timestamps[0]; } pageWriter.write(timestamps, values, batchSize); pageStatistics.updateStats(values); ****************** this line is not correct checkPageSizeAndMayOpenANewPage(); } ``` -- This message was sent by Atlassian Jira (v8.3.4#803005)
