Versions Compared

Key

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

...

When the request timeout has been reached, we do the following:

  1. Refresh metadata
  2. disconnect and create a new TCP connection.
  3. Refresh metadata
  4. Retry the request on the new TCP connection.

In most cases, metadata refresh should be able to pick up the new leader if a broker is down. If a broker was not down but just slow, as long as request timeout is set to a reasonable value, we should not see dramatic increase in TCP connections when a broker was not down but just slow.

...