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

   ## Summary
   
   Backport the aggregation metric recording optimization from #18018 to the 
`dev/1.3` code line.
   
   This changes aggregation metric recording so aggregator internals no longer 
update the global metric set directly. Instead, scan aggregation and 
aggregation operator costs are accumulated in `FragmentInstanceContext` through 
`OperatorContext` and flushed once when fragment resources are released.
   
   ## Changes
   
   - Add a `raw_data_operator` aggregation metric stage.
   - Move raw-data and statistics aggregation cost recording from `Aggregator` 
internals to operator/fragment-level accumulation.
   - Record aggregation operator raw-data costs in the 1.3 aggregation operator 
paths.
   - Add regression tests for aggregation cost accumulation, forwarding, and 
one-time metric flushing.
   
   ## Validation
   
   - `git diff --check`
   - `mvn -pl iotdb-core/datanode -am 
-Dtest=FragmentInstanceContextTest,AggregationOperatorTest,RawDataAggregationOperatorTest,SeriesAggregationScanOperatorTest
 -Dsurefire.failIfNoSpecifiedTests=false -DskipITs test`
   
   Both surefire phases ran the selected tests with 38 tests, 0 failures, 0 
errors, 0 skipped.
   


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