private boolean deserializeUpdateRecord(InputStream streamlog, InputStream oldStreamlog) throws ContinueException {
    boolean isDeleteRecord = false;
    boolean caughtException = false;
    boolean caughtExceptionInOld = false;
    try {
      isDeleteRecord = MessageFormatRecord.deserializeUpdateRecord(streamlog).getType().equals(SubRecord.Type.DELETE);
    } catch (Exception e) {
      caughtException = true;
    }

    try {
      MessageFormatRecord.deserializeUpdateRecord(oldStreamlog);
    } catch (Exception e) {
      caughtExceptionInOld = true;
    }

    if (caughtException && !caughtExceptionInOld) {
      throw new ContinueException("delete record could not be deserialized");
    }
    return isDeleteRecord;
  }
@return {@code true} if this was a delete record, {@code false} otherwise
@throws ContinueException if there is a deser failure in the new log
ambry-tools/src/main/java/com/github/ambry/store/HardDeleteVerifier.java