private boolean hasFailedLocally() {
    if (hasFailedDynamically() || // The dynamic failure mode only applies in the local colo.
        ((localReplicaSuccessCount + localInflightCount + localReplicas.size()) < localReplicaSuccessTarget)) {
      logger.error("Paranoid durability PUT failed in local data center (" + datacenterName + ") for partition " + partitionId);
      routerMetrics.paranoidDurabilityFailureCount.inc();
      return true;
    }
    return false;
  }
Check if the operation has failed locally (i.e. in the local data center).
@return true if we have received enough failed responses from local replicas that the operation cannot possibly
succeed, false otherwise.
ambry-router/src/main/java/com/github/ambry/router/ParanoidDurabilityOperationTracker.java