hongzhi-gao opened a new pull request, #18682:
URL: https://github.com/apache/iotdb/pull/18682

   ## Description
   
     ### Fix closing TsFile synchronization
   
     Update DataRegion.syncCloseAllWorkingTsFileProcessors() to also wait for 
processors that are already closing,
     preventing snapshots from omitting their TsFiles.
   
     ### Fail snapshots safely
   
     Update SnapshotTaker to return failure and log an error when an unclosed 
TsFile is encountered instead of silently
     skipping it.
   
     ### Test coverage
   
     Add and update unit tests covering already-closing processors and unclosed 
TsFiles during snapshot creation.
     <hr>
   
     This PR has:
   
     - [x] been self-reviewed.
         - [x] concurrent write
   
     - [x] added unit tests or modified existing tests to cover new code paths, 
ensuring the threshold for code coverage.
     <hr>
   
     ##### Key changed/added classes (or packages if there are too many 
classes) in this PR
   
     - DataRegion
     - SnapshotTaker
     - DataRegionTest
     - IoTDBSnapshotTest


-- 
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