-
Notifications
You must be signed in to change notification settings - Fork 9k
HADOOP-19527. Skip AAL tests if encryption is set. #7592
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-19527. Skip AAL tests if encryption is set. #7592
Conversation
Changes to skip AAL vectored test if encryption is anything other than SSE-S3. |
what about sse-kms? I use that, normally |
🎊 +1 overall
This message was automatically generated. |
@steveloughran this change will skip the The tests were failing because for these encryption methods, the eTag is not the md5 of the object content. Because AAL caches the HEAD, the eTag being used on the GET was from a previous creation of the file used for the vectoredIo tests if you run these tests with no encryption set, it passes, as then the eTag is the md5, and so is always the same. More details in the JIRA ticket. |
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.
+1 pending the changes
* @param configuration configuration | ||
* @throws IOException if the secret lookup fails. | ||
*/ | ||
public static void skipIfEncryptionSet(Configuration configuration) throws IOException { |
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.
change title to skipForAnyEncryptionExceptSSES3()
// https://github.com/awslabs/analytics-accelerator-s3/issues/218 | ||
try { | ||
skipIfEncryptionSet(conf); | ||
} catch (IOException e) { |
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.
do this in the method itself
🎊 +1 overall
This message was automatically generated. |
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.
+1
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Contributed by Ahmar Suhail.
Contributed by Ahmar Suhail.
Description of PR
When encryption is set to anything other than AES256, eTag behaviour changes, which leads to some test failures. See https://issues.apache.org/jira/browse/HADOOP-19527 for more details.
Also skip AAL tests if CSE is enabled as that is not supported currently.
How was this patch tested?
Ran both
ITestS3AContractAnalyticsStreamVectoredRead
andITestS3AAnalyticsAcceleratorStreamReading
with different encryption configurations.Tests pass when nothing is set or if
fs.s3a.encryption.algorithm
is set to AES256.ITestS3AContractAnalyticsStreamVectoredRead is skipped when encryption is set to SSE-KMS (or anything else)
ITestS3AAnalyticsAcceleratorStreamReading is skipped when encryption is set to CSE-KMS.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?