void updateNow() {
      try (final Stream<Path> files = Files.list(raftLogStorageRoot.toPath())) {
        final Set<Path> latest = files.filter(isOpenSegment).collect(Collectors.toSet());
        this.totalSize += diff(logFiles, latest);
        this.logFiles = latest;
      } catch (IOException e) {
        // keep the files unchanged
        logger.warn("{}: Error caught when listing files for {} at {}:", this, gid, e);
      }
    }
Whether the path denotes an open segment under active writing progress
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/DiskGuardian.java