public TConfigNodeLocation generateLocalConfigNodeLocationWithSpecifiedNodeId(int configNodeId) {
    return new TConfigNodeLocation(
        configNodeId,
        new TEndPoint(getInternalAddress(), getInternalPort()),
        new TEndPoint(getInternalAddress(), getConsensusPort()));
  }
The getOrCreatePartitionTable interface will log new created Partition if set true.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java