public String getConsensusGroupId() {
    return consensusGroupId;
  }
If there is only one replica, set it to Long.MAX_VALUE. If there are multiple replicas, get the
latest SafelyDeletedSearchIndex again. This enables wal to be deleted in a timely manner.
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensusServerImpl.java