If we don't try to trigger `elect` after we clear the queue and the new controller goes away before we clear the queue, the watch may have put `Reelect` in the queue before the clear happens. In this case, that broker will miss controller election. From the correctness point of view, this may not be a problem because at least one other broker will conduct the controller election and become the controller. It is safe to clear and resign if we don't care about fairness in controller election.
[ Full content available at: https://github.com/apache/kafka/pull/5101 ] This message was relayed via gitbox.apache.org for [email protected]
