public void onResponse(ReplicaId replicaId, TrackedRequestFinalState trackedRequestFinalState) {
    super.onResponse(replicaId, trackedRequestFinalState);
    String dcName = replicaId.getDataNodeId().getDatacenterName();

    if(dcName.equals(datacenterName)) {
      localInflightCount--;
    } else {
      remoteInflightCount--;
      remoteAttempts++;
    }

    switch (trackedRequestFinalState) {
      case SUCCESS:
        if (dcName.equals(datacenterName)) {
          localReplicaSuccessCount++;
        } else {
          remoteReplicaSuccessCount++;
        }
        break;
      case REQUEST_DISABLED:
        if (dcName.equals(datacenterName)) { // Only track this locally, for dynamic success/failure purposes
          disabledLocalReplicas++;
        }
        break;
      default:
        if (dcName.equals(datacenterName)) { // Only track this locally, for dynamic success/failure purposes
          failedLocalReplicas++;
        }
    }
  }
Handle a response from a replica, updating the state of the operation.
@param replicaId ReplicaId associated with this response.
@param trackedRequestFinalState The final state of a single request being tracked.
ambry-router/src/main/java/com/github/ambry/router/ParanoidDurabilityOperationTracker.java