Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconstruct blobId by excluding partition Id #2910

Closed
wants to merge 3 commits into from

Conversation

SophieGuo410
Copy link
Contributor

No description provided.

@SophieGuo410 SophieGuo410 force-pushed the Branch_construct_caspian_blob_name branch from 68bba66 to 3c54211 Compare October 4, 2024 04:05
@SophieGuo410 SophieGuo410 force-pushed the Branch_construct_caspian_blob_name branch from 3c54211 to e057d66 Compare October 4, 2024 16:42
@SophieGuo410 SophieGuo410 marked this pull request as ready for review October 4, 2024 16:42
@@ -845,8 +845,8 @@ public RouterConfig(VerifiableProperties verifiableProperties) {
verifiableProperties.getDoubleInRange(ROUTER_LATENCY_TOLERANCE_QUANTILE, DEFAULT_LATENCY_TOLERANCE_QUANTILE,
0.0, 1.0);
routerBlobidCurrentVersion =
verifiableProperties.getShortFromAllowedValues(ROUTER_BLOBID_CURRENT_VERSION, (short) 6,
new Short[]{1, 2, 3, 4, 5, 6});
verifiableProperties.getShortFromAllowedValues(ROUTER_BLOBID_CURRENT_VERSION, (short) 7,
Copy link
Contributor

Choose a reason for hiding this comment

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

Like we were discussing offline, even though our CFG2 has version as 6, I am wondering if it may not be safe to change default value to 7 until these changes are rolled out!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, updated

BlobProperties blobProperties = blobInfo.getBlobProperties();
boolean isSimpleBlob = !options.isChunkUpload() && !options.skipCompositeChunk();
//Chunk upload does not need the customized blobId
BlobId.BlobDataType blobDataType = isSimpleBlob ? BlobId.BlobDataType.SIMPLE : BlobId.BlobDataType.METADATA;
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm.. I think we won't know if it is a "simple blob" or "composite blob" until we read data from Netty. Once we cross 4 MB, it becomes composite blob https://github.com/linkedin/ambry/blob/master/ambry-router/src/main/java/com/github/ambry/router/PutOperation.java#L688. I am wondering if we need to exclude this field as well during Ambry ID -> Caspian ID mapping

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we can just set all the data type to simple cause we don't need this info for caspian upload.

@SophieGuo410 SophieGuo410 force-pushed the Branch_construct_caspian_blob_name branch 2 times, most recently from 75c5373 to 2adc236 Compare October 30, 2024 04:35
@SophieGuo410 SophieGuo410 force-pushed the Branch_construct_caspian_blob_name branch from 2adc236 to 9d484d1 Compare October 30, 2024 05:15
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.

2 participants