Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.