Skip to content

Conversation

@allenaverbukh
Copy link
Contributor

Summary

Put Md5 for caspian migration

Testing Done

unit test

Copy link
Contributor

@SophieGuo410 SophieGuo410 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to make sure:

  1. the id converter in close source also gets update.
  2. we need to make sure all the db has this digest field before we merge this pr.

deleted_ts datetime(6) DEFAULT NULL,
blob_size bigint unsigned DEFAULT 0,
modified_ts datetime(6) DEFAULT CURRENT_TIMESTAMP(6),
digest varchar(255) DEFAULT NULL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need 255 length right? VARCHAR(50) is enough

* Test put Named Blob with digest.
*/
@Test
public void putNamedBlobDigestTest() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also have some test in MySqlNamedBlobDbIntegrationTest to make sure the mysql query works fine.

* @param version the version of this named blob.
* @param digest the digest of this blob
*/
public NamedBlobRecord(String accountName, String containerName, String blobName, String blobId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we have too many constructors which might not nessessary, we can try to combine them. we can have a follow up pr to do it.

@SophieGuo410 SophieGuo410 merged commit 0a6a01a into master Nov 21, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants