HTHou opened a new pull request, #12953:
URL: https://github.com/apache/iotdb/pull/12953

   ## Description
   
   When compression ratio from file is negative, it may cause tsfile flush 
error.
   
   
![img_v3_02cs_501b3d95-9d86-422a-b6c2-945911cd4e9g](https://github.com/user-attachments/assets/c01bb100-bf24-43c2-b017-f86c24cbc739)
   
   To reproduce, you can try the following operations.
   
   1. insert the following sql `insert into root.sg.d1(time,s1) values(1,1)` 
twice.
   2. kill -9 datanode and restart datanode
   3. execute `insert into root.sg.d1(time,s2) values(1,false)` and `flush`
   4. check the file name in data/datanode/system/compression_ratio (should be 
negative in v1.3.2...)
   5. stop datanode and restart datanode
   6. execute `insert into root.sg.d1(time,s2) values(2,false)` and `flush` 
(should be errored.. )
   
   To verify the fix, execute step 1 - 4 on v1.3.2, upgrade to v1.3.3 and then 
execute step 5 and 6.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to