@Override
    public void close() {
        registry.ifPresent(r -> Arrays.asList(
            CURRENT_METADATA_VERSION,
            CURRENT_CONTROLLER_ID,
            HANDLE_LOAD_SNAPSHOT_COUNT
        ).forEach(r::removeMetric));
    }
Retrieve the last offset which has been processed by all publishers.
metadata/src/main/java/org/apache/kafka/image/loader/metrics/MetadataLoaderMetrics.java