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 2019/11/17 18:55:48 UTC
[GitHub] [hadoop] steveloughran commented on a change in pull request #1695:
HADOOP-16685: FileSystem#listStatusIterator does not check if given path
exists
steveloughran commented on a change in pull request #1695: HADOOP-16685: FileSystem#listStatusIterator does not check if given path exists
URL: https://github.com/apache/hadoop/pull/1695#discussion_r347152581
##########
File path: hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java
##########
@@ -279,6 +279,20 @@ public void testListFilesNoDir() throws Throwable {
}
}
+ @Test
+ public void testListStatusIteratorNoDir() throws Throwable {
+ describe("test the listStatusIterator calls on a path which is not " +
+ "present");
+ Path path = path("missing");
+ try {
+ RemoteIterator<FileStatus> iterator
Review comment:
use `LambdaTestUtils.intercept()`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org