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

   ## What is the purpose of the change
   
   Fix #10876.
   
   BrokerIdentityInfo supports partial identities: RaftReplicasInfoManager 
creates instances with null clusterName and brokerId. equals() called equals 
directly on every field, so comparing two valid partial identities threw 
NullPointerException.
   
   ## Brief changelog
   
   - BrokerIdentityInfo.equals: use Objects.equals for all three fields
   
   ## How was this patch verified
   
   - Code review: null-safe comparison for clusterName, brokerName and brokerId
   - `git diff --check` clean
   


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