public Set<Integer> getAllSchemaPartition() {
    return partitionInfo.getAllSchemaPartition();
  }
Only leader use this interface.

@return Integer set of all schemaengine region id
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java