docs: public void triggerPartitionReplicaSync(int partitionId, Collection<ServiceNamespace> namespaces, int replicaIndex) {
          assert replicaIndex >= 0 && replicaIndex < InternalPartition.MAX_REPLICA_COUNT
                  : "Invalid replica index! partitionId=" + partitionId + ", replicaIndex=" + replicaIndex;
  
          PartitionReplica target = checkAndGetPrimaryReplicaOwner(partitionId, replicaIndex);
          if (target == null) {
              return;
          }
  
          if (!partitionService.areMigrationTasksAllowed()) {
              logger.finest("Cannot send sync replica request for partitionId=" + partitionId + ", replicaIndex=" + replicaIndex
                      + ", namespaces=" + namespaces + ". Sync is not allowed.");
              return;
          }
  
          InternalPartitionImpl partition = partitionStateManager.getPartitionImpl(partitionId);
          if (partition.isMigrating()) {
              logger.finest("Cannot send sync replica request for partitionId=" + partitionId + ", replicaIndex=" + replicaIndex
                      + ", namespaces=" + namespaces + ". Partition is already migrating.");
              return;
          }
  
          sendSyncReplicaRequest(partitionId, namespaces, replicaIndex, target);
      }