dengziming opened a new pull request #11291:
URL: https://github.com/apache/kafka/pull/11291


   *More detailed description of your change*
   
   I found some error that says "Re-registered broker" but I didn't see 
"Registered new broker":
   ```
   [2021-09-02 09:47:02,532] INFO [Controller 3000] Re-registered broker 
incarnation: RegisterBrokerRecord(brokerId=0, 
incarnationId=ScFuLmWTQ3WUF3P3XCkWEw, brokerEpoch=0, 
endPoints=[BrokerEndpoint(name='EXTERNAL', host='localhost', port=56409, 
securityProtocol=0)], features=[], rack=null, fenced=true) 
(org.apache.kafka.controller.ClusterControlManager:260)
   ```
   After reviewing the code, I found we are doomed to get a not-null previous 
value if we put a value and get a value.
   
   The log became normal after applying this change:
   ```
   [2021-09-02 09:51:02,191] INFO [Controller 3000] Registered new broker: 
RegisterBrokerRecord(brokerId=0, incarnationId=Z398mgq4Q36J5DYoIrQW0g, 
brokerEpoch=0, endPoints=[BrokerEndpoint(name='EXTERNAL', host='localhost', 
port=57231, securityProtocol=0)], features=[], rack=null, fenced=true) 
(org.apache.kafka.controller.ClusterControlManager:259)
   ```
   
   


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