-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-17115. HttpFS Add Support getErasureCodeCodecs API #5875
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
Conversation
🎊 +1 overall
This message was automatically generated. |
WebHdfsFileSystem webHdfsFileSystem = (WebHdfsFileSystem) httpFs; | ||
diffErasureCodingCodecs = webHdfsFileSystem.getAllErasureCodingCodecs(); | ||
} else { | ||
Assert.fail(fs.getClass().getSimpleName() + |
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.
use LambdaTestUtils.intercept
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.
Thanks for your suggestion, I'll make the required code changes promptly
|
||
for (Map.Entry<String, String> entry : dfsAllErasureCodingCodecs.entrySet()) { | ||
Assert.assertTrue(diffErasureCodingCodecs.containsKey(entry.getKey())); | ||
Assert.assertEquals(entry.getValue(), diffErasureCodingCodecs.get(entry.getKey())); |
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.
extend?
Assert.assertEquals(entry.getValue(), diffErasureCodingCodecs.get(entry.getKey())); | ||
} | ||
} else { | ||
Assert.fail(fs.getClass().getSimpleName() + " is not of type DistributedFileSystem."); |
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.
use LambdaTestUtils.intercept
🎊 +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.
LGTM
…. Contributed by Hualong Zhang. Reviewed-by: Shilun Fan <[email protected]> Signed-off-by: Ayush Saxena <[email protected]>
JIRA: HDFS-17115. Support getECPolices API in WebHDFS