weihubeats commented on PR #8971: URL: https://github.com/apache/rocketmq/pull/8971#issuecomment-2503008010
> Heartbeats are sent to the broker during client start, rebalancing, scheduled tasks, and Channel creation. A locking is used to prevent duplicate heartbeat transmissions. This is a reasonable solution. Add more complex logic to ensure no additional heartbeats are sent would lead to difficulties in understanding and increased maintenance costs. > > if only need prevent warning log, it is more recommended to ignore locking failure or check lock stats before send Heartbeat when Channel creation. I have added a strictLockMode parameter to the sendHeartbeatToBroker method to control whether to log lock acquisition failures. When strictLockMode is true, the system will log lock acquisition failures; when false, these failures will be silently ignored. -- 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]
