HDFS-16351. add path exception information in FSNamesystem#3713
HDFS-16351. add path exception information in FSNamesystem#3713ayushtkn merged 21 commits intoapache:trunkfrom
Conversation
virajjasani
left a comment
There was a problem hiding this comment.
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. |
virajjasani
left a comment
There was a problem hiding this comment.
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. |
virajjasani
left a comment
There was a problem hiding this comment.
+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
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.
Remove this, one test is enough, we need not to mock and try
ayushtkn
left a comment
There was a problem hiding this comment.
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. |
ayushtkn
left a comment
There was a problem hiding this comment.
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