ReplicaSealStatus resolveReplicaSealStatusFromLogSize() {
    // If the size of log exceeds seal high threshold then the log should be marked as sealed.
    // If the log is already sealed, but the size exceeds low threshold, then we will wait for size to go below low
    // threshold before changing the replica state to partially_sealed.
    if (index.getLogUsedCapacity() > sealThresholdBytesHigh || (replicaId.isSealed()
        && index.getLogUsedCapacity() >= sealThresholdBytesLow)) {
      return ReplicaSealStatus.SEALED;
    }
    // If the size of log exceeds partial seal high threshold then the log should be marked as partially sealed.
    // If the log is already partially sealed, but the size exceeds low threshold, then we will wait for size to go
    // below low threshold before changing the replica state to partially_sealed.
    if (index.getLogUsedCapacity() > partialSealThresholdBytesHigh || (replicaId.isPartiallySealed()
        && index.getLogUsedCapacity() >= partialSealThresholdBytesLow)) {
      return ReplicaSealStatus.PARTIALLY_SEALED;
    }
    return ReplicaSealStatus.NOT_SEALED;
  }
Resolve the {@link ReplicaSealStatus} of this store's replica based on the current {@link ReplicaSealStatus} and
current log used capacity.
@return ReplicaSealStatus object.
ambry-store/src/main/java/com/github/ambry/store/BlobStore.java