Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-284

Do not write empty page

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            qiaojialin Jialin Qiao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: