private long getNewPartitionId() {
    long currentPartitionId = maxPartitionId;
    maxPartitionId++;
    return currentPartitionId;
  }
Adds Partition to and validates Partition is unique. A duplicate Partition results in an exception.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/PartitionLayout.java