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

   ## Description
   
   Backport #18350 (`a6ac4cba687a98a1dbc0babe72f590da9ce9be8f`) to `dev/1.3`.
   
   - Defer closing the TsFile scan container until the final tablet's memory 
has been released.
   - Close immediately when initialization finds no readable chunk.
   - Add regression coverage that verifies allocated tablet memory is zero 
before the memory block is closed.
   
   The `dev/1.3` branch still uses `TsFileInsertionScanDataContainer`, so the 
parser and test names were adapted to the older container API while preserving 
the original behavior.
   
   ## Verification
   
   - `mvn -o -nsu spotless:apply -pl iotdb-core/datanode`
   - `mvn -o -nsu -pl iotdb-core/datanode 
'-Dtest=TsFileInsertionDataContainerTest#testScanContainerReleasesTabletMemoryAfterRawTabletGenerated'
 test` (1 test passed, 0 failures)
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added or modified unit tests.


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