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

   ### Which Issue(s) This PR Fixes
   
   Related to #7211 and [Discussion 
#10952](https://github.com/apache/rocketmq/discussions/10952).
   
   ### Brief Description
   
   `RebalanceImpl.lock()` and `lockAll()` currently pass a fixed 1,000 ms 
timeout to `lockBatchMQ`. Add 
`DefaultMQPushConsumer#setLockRpcTimeoutMillis(long)` so callers can configure 
that per-RPC timeout before starting an orderly consumer.
   
   - Use the configured value for individual lock requests and batch renewals. 
Keep 1,000 ms as the default.
   - Reject non-positive values. Document that a longer timeout can extend a 
renewal round because requests are sent one broker at a time.
   
   ### How Did You Test This Change?
   
   Ran with JDK 17:
   
   ```bash
   mvn -pl client -am \
     -Dtest=RebalancePushImplTest,RebalanceLitePullImplTest \
     -Dsurefire.failIfNoSpecifiedTests=false -Djacoco.skip=true test
   ```
   
   Build succeeded. All 14 tests passed, with no failures, errors, or skipped 
tests. The added tests verify that both lock paths pass through the default 
1,000 ms and a configured 2,500 ms, and that zero and negative values are 
rejected.
   


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