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

   ## Problem
   
   Aligned TsFile page-memory estimation reparsed every already cached value 
chunk whenever a new value chunk was considered. For wide aligned devices this 
made the scan parser's work quadratic in the number of value chunks and could 
leave pipe history threads at 100% CPU for hours.
   
   ## Changes
   
   - Cache per-page time sizes and row counts once per pending aligned chunk 
group.
   - Incrementally add each value chunk's page sizes and memory contribution, 
preserving the existing suffix-maximum semantics.
   - Reuse the incremental estimates when constructing the memory-controlled 
reader.
   - Add a regression test comparing incremental estimates with the full 
calculation across multiple pages and value chunks.
   
   ## Validation
   
   - `mvn spotless:check -pl iotdb-core/datanode`
   - Direct compilation with the existing DataNode classpath and `JUnitCore`: 
`OK (1 test)`
   
   The full Maven test invocation was attempted but could not complete because 
the local machine was already under heavy Java-process memory pressure; the JVM 
first failed to reserve memory and the reduced-heap retry remained in the 
existing module compilation for several minutes without producing a result.
   


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