private boolean hasSucceededRemotely() {
    if (remoteReplicaSuccessCount >= remoteReplicaSuccessTarget) {
      return true;
    } else if(remoteAttempts >= remoteAttemptLimit) {
      // We want to limit the number of retries that we issue to remote colos. At times of excessive network latency,
      // we may end up issuing a large number of retries to remote colos. This is undesirable, since it will lead to
      // excessive direct memory usage, because ambry-frontend will hold the state for every request until it is completed.
      logger.error("Paranoid durability PUT failed in remote data centers for partition "
          + partitionId + " - gave up after " + remoteAttempts + " attempts. If the local writes succeeded, "
          + "we will still return success to the client. This is likely a network issue.");
      routerMetrics.paranoidDurabilityRemoteRetriesExceededCount.inc();
      return true;
    }
    return false;
  }
Check if the operation has succeeded remotely (i.e. in the remote data centers).
@return true if we have received enough successful responses from remote replicas, false otherwise.
ambry-router/src/main/java/com/github/ambry/router/ParanoidDurabilityOperationTracker.java