Parkerhiphop opened a new pull request, #21470:
URL: https://github.com/apache/kafka/pull/21470

   ### Background
   Currently, when a broker receives a `LeaderAndIsrRequest` for a partition it 
does not yet host—most commonly during a partition reassignment or new topic 
creation—it logs a high-severity ERROR message:
   
   `ERROR [Broker id=$brokerId] Expected partition $tp with topic id $topicId 
to exist, but it was missing. Creating...`
   
   This message is misleading to operators as it implies a state of 
inconsistency or data loss ("missing," "expected to exist"), when in fact the 
behavior is a normal part of the partition lifecycle. During a move, the 
destination broker is expected not to have the partition locally until the 
transition begins.
   
   ### Changes:
   1. Downgraded the log level from ERROR to INFO.
   2. Updated the message string to focus on the action ("initializing") rather 
than the "missing" state.
   3. The new message is meant to neutral and accurately describes both 
partition reassignment and initial topic creation scenarios.
   
   ### Impact:
   Reduces "log noise" and prevents false-positive alerts in monitoring systems 
that trigger on ERROR strings in the state.change.logger.


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