public void updateParentDir(File parentDir) {
        logDir = parentDir;
        snapshots.forEach((k, v) -> v.updateParentDir(parentDir));
    }
Update the parentDir for this ProducerStateManager and all of the snapshot files which it manages.
storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateManager.java