-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19604. ABFS: Full blob md5 computation during flush change to be config driven #7853
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
59a4ea3
a8e0488
92c975c
a161e06
538a2cd
2bd7ce0
6f24907
6b138c0
8292192
f15c5e6
7f8c465
c42ac75
d0f2aea
07c396c
5e6298a
d951cc0
9ae0198
5f48139
ef1db63
4b4b7a4
513511a
dbb743f
b28abe2
3c249d9
4c24330
1200cb2
493484e
144ba1a
f8a0a64
20f3582
4fd400b
c5f32be
f9a3529
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,10 @@ protected synchronized AbfsRestOperation remoteFlush(final long offset, | |
tracingContextFlush.setIngressHandler(DFS_FLUSH); | ||
tracingContextFlush.setPosition(String.valueOf(offset)); | ||
} | ||
String fullBlobMd5 = computeFullBlobMd5(); | ||
String fullBlobMd5 = null; | ||
if (getClient().isFullBlobChecksumValidationEnabled()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the check getClient().isFullBlobChecksumValidationEnabled() is common in both DFS, Blob ingress handlers- we can add it as a common method in the abstract class itself There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would not result in any major improvement as it's just called at 2 places |
||
fullBlobMd5 = computeFullBlobMd5(); | ||
} | ||
LOG.trace("Flushing data at offset {} and path {}", offset, getAbfsOutputStream().getPath()); | ||
AbfsRestOperation op; | ||
try { | ||
|
@@ -194,7 +197,9 @@ protected synchronized AbfsRestOperation remoteFlush(final long offset, | |
getAbfsOutputStream().getPath(), offset, ex); | ||
throw ex; | ||
} finally { | ||
getAbfsOutputStream().getFullBlobContentMd5().reset(); | ||
if (getClient().isFullBlobChecksumValidationEnabled()) { | ||
getAbfsOutputStream().getFullBlobContentMd5().reset(); | ||
} | ||
} | ||
return op; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The getter method
isFullBlobChecksumValidationEnabled()
lacks a corresponding setter method, which breaks the pattern established by other configuration properties likeisChecksumValidationEnabled
. This could cause issues for programmatic configuration changes.Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setter is not used anywhere