You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/12/04 17:41:37 UTC
[GitHub] [hadoop] virajjasani commented on a change in pull request #3713: HDFS-16351. add path exception information in FSNamesystem
virajjasani commented on a change in pull request #3713:
URL: https://github.com/apache/hadoop/pull/3713#discussion_r762448539
##########
File path: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSPermission.java
##########
@@ -260,6 +261,16 @@ private void createAndCheckPermission(OpType op, Path name, short umask,
checkPermission(name, expectedPermission, delete);
}
+ @Test
+ public void testFSNamesystemCheckAccess() throws Exception{
+ Path testInvalidPath = new Path("/test2");
+ fs = FileSystem.get(conf);
+
+ LambdaTestUtils.intercept(FileNotFoundException.class,
+ "Path not found: " + testInvalidPath,
+ () -> fs.access(testInvalidPath, FsAction.READ));
Review comment:
There is a new checkstyle warning about the alignment of this statement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org