mumrah commented on code in PR #15007: URL: https://github.com/apache/kafka/pull/15007#discussion_r1428410182
########## metadata/src/main/java/org/apache/kafka/metadata/migration/MigrationManifest.java: ########## @@ -41,15 +41,17 @@ public static class Builder { private final Map<MetadataRecordType, Integer> counts = new HashMap<>(); private int batches = 0; private int total = 0; + private long batchDurationsNs = 0; private long endTimeNanos = 0; Builder(Time time) { this.time = time; this.startTimeNanos = time.nanoseconds(); } - public void acceptBatch(List<ApiMessageAndVersion> recordBatch) { + public void acceptBatch(List<ApiMessageAndVersion> recordBatch, long durationNs) { batches++; + batchDurationsNs += durationNs; Review Comment: Yup, that's correct. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org