-
Notifications
You must be signed in to change notification settings - Fork 9k
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
HDFS-15515: mkdirs on fallback should throw IOE out instead of suppressing and returning false #2205
Conversation
…ssing and returning false
💔 -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.
Thanx @umamaheswararao for the work here.
Chnages LGTM, test failures seems unrelated.
+1
@@ -759,7 +759,11 @@ public void testMkdirsShouldReturnFalseWhenFallbackFSNotAvailable() | |||
cluster.shutdownNameNodes(); // Stopping fallback server | |||
// /user1/test1 does not exist in mount internal dir tree, it would | |||
// attempt to create in fallback. | |||
assertFalse(vfs.mkdirs(nextLevelToInternalDir)); | |||
try { | |||
vfs.mkdirs(nextLevelToInternalDir); |
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.
Done, thanks
LGTM-just change the test to use intercept() |
+1 after changing to intercept() |
💔 -1 overall
This message was automatically generated. |
…ssing and returning false (#2205) * HDFS-15515: mkdirs on fallback should throw IOE out instead of suppressing and returning false * Used LambdaTestUtils#intercept in test
…ssing and returning false (#2205) * HDFS-15515: mkdirs on fallback should throw IOE out instead of suppressing and returning false * Used LambdaTestUtils#intercept in test (cherry picked from commit 99b120a)
…ssing and returning false (#2205) * HDFS-15515: mkdirs on fallback should throw IOE out instead of suppressing and returning false * Used LambdaTestUtils#intercept in test (cherry picked from commit 99b120a)
…ssing and returning false (apache#2205) * HDFS-15515: mkdirs on fallback should throw IOE out instead of suppressing and returning false * Used LambdaTestUtils#intercept in test (cherry picked from commit 8955a6c) Change-Id: I9e8e340f6f5b7d42bdca632d6983543b3548aa4d (cherry picked from commit 0538650)
https://issues.apache.org/jira/browse/HDFS-15515