public static void build() {
    if (DataRegionConsensusImpl.getInstance() instanceof PipeConsensus) {
      DeletionResourceManagerHolder.build();
    }
  }
This is a hook function, which will be automatically invoked when deletionResource's reference
count returns to 0.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/consensus/deletion/DeletionResourceManager.java