Details
Description
It is possible for controllers to replay a record twice. This happens when the active controller replays an uncommitted record, resigns and replays the same record when it becomes committed.
The controller handles these transition changes by using timeline data structures and reverting to previous in-memory snapshots.
This functionality is not used when computing the fenced and unfenced metrics. Specifically, the metric can over count when executing this code:
} else if (prevRegistration == null) { if (registration.fenced()) { controllerMetrics.setFencedBrokerCount(controllerMetrics.fencedBrokerCount() + 1); log.info("Added new fenced broker: {}", registration.id()); } else { controllerMetrics.setActiveBrokerCount(controllerMetrics.activeBrokerCount() + 1); log.info("Added new unfenced broker: {}", registration.id()); }
From ClusterControlManager::updateMetrics.
Attachments
Issue Links
- links to