@Override
    public void close() throws InterruptedException {
        try {
            for (LocalLogManager logManager : logManagers) {
                logManager.beginShutdown();
            }
            for (LocalLogManager logManager : logManagers) {
                logManager.close();
            }
            Utils.delete(dir);
        } catch (IOException e) {
            log.error("Error deleting {}", dir.getAbsolutePath(), e);
        }
    }
Append some records to the log. This method is meant to be called before the
controllers are started, to simulate a pre-existing metadata log.

@param records   The records to be appended. Will be added in a single batch.
metadata/src/test/java/org/apache/kafka/metalog/LocalLogManagerTestEnv.java