private static long diff(Set<Path> old, Set<Path> latest) {
      final long incremental = totalSize(latest.stream().filter(p -> !old.contains(p)));
      final long decremental = totalSize(old.stream().filter(p -> !latest.contains(p)));
      return incremental - decremental;
    }
Whether the path denotes an open segment under active writing progress
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/DiskGuardian.java