lizhimins opened a new pull request, #10470:
URL: https://github.com/apache/rocketmq/pull/10470

   ## What is the purpose of the change
   
   Part of #10462
   
   Add memory backpressure mechanism to the tiered storage dispatcher. When 
available heap memory falls below the configured threshold, dispatch is skipped 
to prevent OOM.
   
   ## Brief changelog
   
   - Add `tieredStoreDispatchMinFreeMemoryRatio` (default 0.1) and 
`tieredStoreDispatchMinFreeMemoryMaxBytes` (default 1GB) config
   - Add `isMemoryEnough()` check before dispatch
   - Remove Dispatcher semaphore, rely on thread pool natural throttling
   - Rename `dispatchWithSemaphore` to `dispatch`
   
   ## Verifying this change
   
   - [x] `mvn compile` succeeds
   - [x] `mvn test -pl tieredstore` passes (112 tests, 0 failures)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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