private void updateMutationMetrics(HRegion region, long starttime, boolean batchContainsPuts,
    boolean batchContainsDelete) {
    final MetricsRegionServer metricsRegionServer = server.getMetrics();
    if (metricsRegionServer != null) {
      long after = EnvironmentEdgeManager.currentTime();
      if (batchContainsPuts) {
        metricsRegionServer.updatePutBatch(region, after - starttime);
      }
      if (batchContainsDelete) {
        metricsRegionServer.updateDeleteBatch(region, after - starttime);
      }
    }
  }
HBASE-17924 mutationActionMap is a map to map the relation between mutations and actions
since mutation array may have been reoredered.In order to return the right result or
exception to the corresponding actions, We need to know which action is the mutation belong
to. We can't sort ClientProtos.Action array, since they are bonded to cellscanners.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java