-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-16351. add path exception information in FSNamesystem #3713
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
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.
Can you please also add a test?
💔 -1 overall
This message was automatically generated. |
Thanks @virajjasani for your review .test case have just updated. |
💔 -1 overall
This message was automatically generated. |
🎊 +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.
Thanks for writing the test @GuoPhilipse. Could you also add one additional test in TestDFSPermission
because that way we can also test creating some file and then test checkAccess()
through FileSystem#access
with existing and non-existing files? This way we will have coverage for Mockito (as you did) as well as HDFS FS API.
Thanks
Sure, have just updated. thanks for reminding me @virajjasani |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Thanks @GuoPhilipse. The changes look good, could you please address 4 checkstyle warnings provided by QA bot? |
Thanks @virajjasani ,have just fix the checkstyle |
💔 -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 (non-binding), thanks @GuoPhilipse
🎊 +1 overall
This message was automatically generated. |
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSPermission.java
Outdated
Show resolved
Hide resolved
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSPermission.java
Outdated
Show resolved
Hide resolved
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSPermission.java
Outdated
Show resolved
Hide resolved
@Test | ||
public void testCheckAccess() throws IOException { | ||
Configuration conf = new Configuration(); | ||
FSImage fsImage = Mockito.mock(FSImage.class); |
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.
Remove this, one test is enough, we need not to mock and try
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 @GuoPhilipse for the update.
Just correct the import order.
Apart changes LGTM, Will commit once updated and we get a clean build!!!
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSPermission.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -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.
Changes LGTM.
Will commit later today, if no complains from Jenkins...
🎊 +1 overall
This message was automatically generated. |
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSPermission.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Thanks @GuoPhilipse, looks good now. |
Merged, Thanx Everyone!!! |
…). Contributed by guophilipse. Reviewed-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
add path information in exception message to make message more clear in FSNamesystem