private static long getUpdateRecordSize(BlobId blobId, SubRecord.Type updateType) {
    try {
      return MessageFormatRecord.getHeaderSizeForVersion(MessageFormatRecord.getCurrentMessageHeaderVersion())
          + blobId.sizeInBytes() + MessageFormatRecord.Update_Format_V3.getRecordSize(updateType);
    } catch (Exception e) {
      fail("Unexpected exception" + e);
    }
    return 0;
  }
@param blobId the blob ID being updated
@param updateType the type of update
@return the size of the update record in the log
ambry-test-utils/src/main/java/com/github/ambry/server/ServerTestUtil.java