code: public synchronized long[] updateReplicas(List<Long> replicas, Map<Integer, Long> partitionMasters) {
          return updateReplicasInternal(replicas, partitionMasters, null);
      }
docs: Change the replica set configuration (during or after promotion)