dajac commented on PR #13765:
URL: https://github.com/apache/kafka/pull/13765#issuecomment-1568001597

   > To achieve the objective that you desired, there is another way without 
changing the definition, i.e. change how the components reacts when the 
version/epoch is changes. We can choose to not restart the fetcher threads on 
each replica when an shrink ISR with leadership epoch change arrives to it for 
processing.
   
   @divijvaidya This does not help. Restarting the fetcher threads is just a 
mean to provide them the new leader epoch that they have to use. Until they get 
it, they can't replicate. This is the annoying part. If you don't restart the 
fetchers and update the leader epoch "live", you still have that period of time 
during which the followers don't have the correct leader epoch. Note that the 
bump also have an impact on producers/consumers as they have to refresh their 
metadata. Overall, I think that the goal is to only bump the leader epoch on 
leadership changes to avoid all those disturbances.


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to