public MigrationManifest build() {
            if (endTimeNanos == 0) {
                endTimeNanos = time.nanoseconds();
            }
            Map<MetadataRecordType, Integer> orderedCounts = new TreeMap<>(counts);
            return new MigrationManifest(total, batches, batchDurationsNs, endTimeNanos - startTimeNanos, orderedCounts);
        }
Holds the results of a ZK to KRaft metadata migration. The {@link #toString()} can be used to provide a
human-readable summary of the migration.
metadata/src/main/java/org/apache/kafka/metadata/migration/MigrationManifest.java