Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k/metadata: do not return no leader when leader is not yet available
Instead of returning `-1` indicating that there is an ongoing leader election we return randomly selected node as a partition leader. This is much less interrupting for the client as it simply forces it to refresh metadata. Some clients do not tolerate `-1` returned from Metadata handler and simply stop working. Signed-off-by: Michal Maslanka <michal@redpanda.com>
- Loading branch information