Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a broker first starts up, before it has received any responses from the controllerwhen it is in the INITIAL state, it will always "win" broker ID conflicts.  However, once it has communicated with the controllerit is granted a lease, it transitions out of the INITIAL state.  Thereafter, it may lose subsequent conflicts if its broker epoch is stale.  (See KIP-380 for some background on broker epoch.)  The reason for favoring new processes is to accommodate the common case where a process is killed with kill -9 and then restarted.  We want it to be able to reclaim its old ID quickly in this case.

...