boolean tooManyFailedDisks(int failedDiskCount) {
    int totalDisks = currentNode.getDiskIds().size();
    // The failed disks has to larger than the threshold. If the threshold is 1, then even if all disks failed, it won't
    // throw an exception.
    if (totalDisks != 0
        && failedDiskCount / (1.0f * totalDisks) > storeConfig.storeThresholdOfDiskFailuresToTerminate) {
      logger.error("There are {} failed disks, and total disk is {}, surpassed the threshold {}", failedDiskCount,
          totalDisks, storeConfig.storeThresholdOfDiskFailuresToTerminate);
      return true;
    }
    return false;
  }
Return true is too many disks failed.
@param failedDiskCount The number of failed disks.
@return
ambry-store/src/main/java/com/github/ambry/store/StorageManager.java