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

   ## Description
   
   When the first eligible TsFile parser is assigned to a busy worker, 
signaling only that request can leave other available parser slots unused. 
Select a fair window of queued requests across the available slots, accounting 
for selected requests against per-region limits and soft/hard memory headroom.
   
   Workers skip subtasks waiting for an admission signal. Periodic admission 
rechecks handle memory changes without a release notification. Closing an event 
invalidates its parser generation before cancelling pending admission. The 
existing aggregate rejection counter is retained, and a separate metric records 
the fixed reasons `cap`, `memory`, and `fairness`.
   
   ## Validation
   
   - 33 targeted unit tests passed across `PipeMemoryManagerTest`, 
`PipeProcessorSubtaskWorkerTest`, `PipeProcessorSubtaskExecutionGuardTest`, and 
`PipeResourceMetricsTest`.
   - Coverage includes multiple free slots, reverse admission, region quotas 
greater than one, memory protection, notification-driven worker scheduling, 
real worker/subtask STOP/START/DROP, close races, and metric 
registration/removal.
   - All newly added tests were run locally. Spotless passed.
   
   The regression suite has not been checked for failure against the complete 
pre-change source tree. Controlled production old/new A/B and performance 
benchmarks have not been run; production performance improvements remain 
unverified.
   
   This PR has:
   
   - [x] been self-reviewed.
   - [x] added or updated unit tests.
   - [x] added comments explaining the concurrency and scheduling decisions.
   


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