public synchronized void removeRegionLocation(TDataNodeLocation node) {
    replicaSet.getDataNodeLocations().remove(node);
    replicaSet.getDataNodeLocations().sort(TDataNodeLocation::compareTo);
  }
Update the DataNodeLocation in TRegionReplicaSet if necessary.

@param newDataNodeLocation The new DataNodeLocation.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/RegionGroup.java