-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19604_branch-3.4. ABFS: BlockId generation based on blockCount along with full blob md5 computation change #7819
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
HADOOP-19604_branch-3.4. ABFS: BlockId generation based on blockCount along with full blob md5 computation change #7819
Conversation
… full blob md5 computation change (apache#7777) Contributed by Anmol Asrani
🎊 +1 overall
This message was automatically generated. |
…into HADOOP-19604_3.4
🎊 +1 overall
This message was automatically generated. |
============================================================
|
Jira :- https://issues.apache.org/jira/browse/HADOOP-19604
BlockId computation to be consistent across clients for PutBlock and PutBlockList so made use of blockCount instead of offset.
Block IDs were previously derived from the data offset, which could lead to inconsistency across different clients. The change now uses blockCount (i.e., the index of the block) to compute the Block ID, ensuring deterministic and consistent ID generation for both PutBlock and PutBlockList operations across clients.
Restrict URL encoding of certain JSON metadata during setXAttr calls.
When setting extended attributes (xAttrs), the JSON metadata (hdi_permission) was previously URL-encoded, which could cause unnecessary escaping or compatibility issues. This change ensures that only required metadata are encoded.
Maintain the MD5 hash of the whole block to validate data integrity during flush.
During flush operations, the MD5 hash of the entire block's data is computed and stored. This hash is later used to validate that the block correctly persisted, ensuring data integrity and helping detect corruption or transmission errors.