[ https://issues.apache.org/jira/browse/IOTDB-284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jialin Qiao closed IOTDB-284. ----------------------------- Fix Version/s: 0.9.0 Resolution: Fixed > Do not write empty page > ----------------------- > > Key: IOTDB-284 > URL: https://issues.apache.org/jira/browse/IOTDB-284 > Project: Apache IoTDB > Issue Type: Improvement > Reporter: Jialin Qiao > Priority: Major > Fix For: 0.9.0 > > > SET STORAGE GROUP TO root.turbine; > CREATE TIMESERIES root.turbine.d2.s0 WITH DATATYPE=INT32, ENCODING=RLE; > insert into root.turbine.d2(timestamp,s0) values(2,25.3); > flush > > When receiving the insert statement, IoTDB will create a ChunkWriterImpl, but > the value will not be inserted because of type error. > The empty ChunkWriterImpl will be written when meeting the 'flush' command. > Then, the server will log an error: > > 19:33:24.667 [pool-6-IoTDB-Flush-SubTask-ServerServiceImpl-thread-2] ERROR > org.apache.iotdb.tsfile.write.chunk.ChunkBuffer - Write page error, > [s0,INT32,RLE,{},UNCOMPRESSED], minTime:-9223372036854775808, maxTime:0 > > We can check the data type before creating the ChunkWriterImpl to avoid write > empty ChunkWriterImpl. -- This message was sent by Atlassian Jira (v8.3.4#803005)