private void onException(ReplicaId replicaId, Exception e) {
    if (e instanceof SocketException || e instanceof IOException || e instanceof ConnectionPoolTimeoutException) {
      clusterMap.onReplicaEvent(replicaId, ReplicaEventType.Node_Timeout);
    }
  }
Perform the action when a request to the given {@link ReplicaId} is met with an exception.
@param replicaId the {@link ReplicaId} to which the request that received the exception was made.
@param e the {@link Exception} received.
ambry-commons/src/main/java/com/github/ambry/commons/ResponseHandler.java