private void checkCapacityAndUpdateReplicaStatusDelegate() {
    if (replicaStatusDelegates != null) {
      logger.debug("The current used capacity is {} bytes on store {}", index.getLogUsedCapacity(),
          replicaId.getPartitionId());
      updateSealedStatus();
      if (!started && replicaStatusDelegates.size() > 1) {
        reconcileSealedStatus();
      }
      //else: maintain current replicaId status if percentFilled between threshold - delta and threshold
    } else {
      logger.debug("The ReplicaStatusDelegate is not instantiated");
    }
  }
Checks the used capacity of the store against the configured percentage thresholds to see if the store
should be read-only or read-write
ambry-store/src/main/java/com/github/ambry/store/BlobStore.java