public TConsensusGroupId getSuccessorDataPartition(
      String database,
      TSeriesPartitionSlot seriesPartitionSlot,
      TTimePartitionSlot timePartitionSlot) {
    if (isDatabaseExisted(database)) {
      return databasePartitionTables
          .get(database)
          .getSuccessorDataPartition(seriesPartitionSlot, timePartitionSlot);
    } else {
      return null;
    }
  }
Checks whether the specified DataPartition has a successor and returns if it does.

@param database DatabaseName
@param seriesPartitionSlot Corresponding SeriesPartitionSlot
@param timePartitionSlot Corresponding TimePartitionSlot
@return The specific DataPartition's successor if exists, null otherwise
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java