qianye1001 commented on PR #8971: URL: https://github.com/apache/rocketmq/pull/8971#issuecomment-2502901015
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. -- 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