Colin McCabe created KAFKA-13640:
------------------------------------
Summary: Implement final broker heartbeat in kraft
Key: KAFKA-13640
URL: https://issues.apache.org/jira/browse/KAFKA-13640
Project: Kafka
Issue Type: Improvement
Reporter: Colin McCabe
We should implement sending a final heartbeat from the broker when we're about
to shut down. This would speed up the process of fencing the broker.
As a note, this isn't a major concern when controlled shutdown is in use, since
controlled shutdown should move leaders off the broker anyway. But not everyone
uses controlled shutdown in all cases and this would be a nice improvement in
the cases where it's not used.
Actually, even in the controlled shutdown case this provides some limited
benefit as a final "ack" that the broker is going down. It will remove the
broker from the metadata provided to clients slightly quicker.
We do need to avoid blocking too long on final heartbeat, though (we should not
wait more than a second or two at most).
--
This message was sent by Atlassian Jira
(v8.20.1#820001)