Vish12345678673 commented on issue #9275:
URL: https://github.com/apache/rocketmq/issues/9275#issuecomment-2756730361

   
   Bug Report: Slave's accessMessageInMemoryMaxRatio becomes negative
   
   Environment
   - OS: CentOS 6.9
   - RocketMQ version: 5.3.1 (branch/tag: develop)
   - JDK Version: 1.8.0_202
   
   Description
   The slave's `accessMessageInMemoryMaxRatio` parameter may become negative in 
certain scenarios, causing the consumer to consistently consume from the slave 
when it shouldn't.
   
   Steps to Reproduce
   1. Deploy one master and one slave configuration
   2. Update slave config (excluding `accessMessageInMemoryMaxRatio`)
   3. Restart the slave
   4. Repeat steps 2-3 in a loop
   
   After several iterations, the `accessMessageInMemoryMaxRatio` becomes 
negative.
   
   Expected Behavior
   The `accessMessageInMemoryMaxRatio` should maintain its default value of 30 
(or whatever configured value was set).
   
   Actual Behavior
   The value changes to 20 and eventually becomes negative.
   
   Additional Context
   This issue appears during configuration updates and restarts of the slave 
node. The negative value causes improper consumer behavior where messages are 
always consumed from the slave.
   
   Possible Impact
   - Consumers may get incorrect message ordering
   - System may experience performance degradation
   - Slave node might be overloaded with read requests
   
   
   Some suggestions to improve your bug report:
   
   1. Add more specific details about the configuration changes you're making 
in step 2
   2. Include any relevant logs or error messages you've observed
   3. Specify how many iterations are typically needed to reproduce the issue
   4. If possible, include information about whether this affects message 
persistence or just consumption
   5. Consider adding whether this happens with specific topic/queue 
configurations
   


-- 
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: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to