protected void updatePartitionInfoMaps(List<RemoteReplicaInfo> remoteReplicaInfos, ReplicaId replicaId) {
    PartitionId partition = replicaId.getPartitionId();
    PartitionInfo partitionInfo =
        new PartitionInfo(remoteReplicaInfos, partition, storeManager.getStore(partition), replicaId);
    partitionToPartitionInfo.put(partition, partitionInfo);
    mountPathToPartitionInfos.computeIfAbsent(replicaId.getMountPath(), key -> ConcurrentHashMap.newKeySet())
        .add(partitionInfo);
  }
Update {@link PartitionInfo} related maps including {@link ReplicationEngine#partitionToPartitionInfo} and
{@link ReplicationEngine#mountPathToPartitionInfos}
@param remoteReplicaInfos the {@link RemoteReplicaInfo}(s) of the local {@link ReplicaId}
@param replicaId the local replica
ambry-replication/src/main/java/com/github/ambry/replication/ReplicationEngine.java