void handleCommit(MemoryBatchReader<ApiMessageAndVersion> reader) {
            listener.handleCommit(reader);
            offset = reader.lastOffset().getAsLong();
        }
Return all records in the log as a list.
metadata/src/test/java/org/apache/kafka/metalog/LocalLogManager.java