public long getReferenceCount() {
    return pipeTaskReferenceCount.get();
  }
DeletionResource is designed for IoTConsensusV2 to manage the lifecycle of all deletion
operations including realtime deletion and historical deletion. In order to be compatible with
user pipe framework, PipeConsensus will use {@link PipeDeleteDataNodeEvent}
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/consensus/deletion/DeletionResource.java