Chia-Ping Tsai created KAFKA-21125:
--------------------------------------
Summary: Ensure the remote metrics get removed on leadership change
Key: KAFKA-21125
URL: https://issues.apache.org/jira/browse/KAFKA-21125
Project: Kafka
Issue Type: Improvement
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
KAFKA-21098 and KAFKA-21124 add the guard to the methods that update the
metrics. However, the guard is not 100% reliable since the race between the
check and the update could still re-register the metrics.
A simple approach is that the tasks should remove their own metrics when they
exit after being cancelled. The deletion is idempotent so we can tolerate the
duplicate delete operations 🙂
--
This message was sent by Atlassian Jira
(v8.20.10#820010)