Description
FileSystem.DirListingIterator.next() call should return NoSuchElementException rather than IllegalStateException
Stacktrace for new test failure:
java.lang.IllegalStateException: No more items in iteratorjava.lang.IllegalStateException: No more items in iterator at com.google.common.base.Preconditions.checkState(Preconditions.java:507) at org.apache.hadoop.fs.FileSystem$DirListingIterator.next(FileSystem.java:2232) at org.apache.hadoop.fs.FileSystem$DirListingIterator.next(FileSystem.java:2205) at org.apache.hadoop.fs.contract.ContractTestUtils.iteratorToListThroughNextCallsAlone(ContractTestUtils.java:1495) at org.apache.hadoop.fs.contract.AbstractContractGetFileStatusTest.testListStatusIteratorFile(AbstractContractGetFileStatusTest.java:366)
Attachments
Issue Links
- Is contained by
-
HADOOP-17281 Implement FileSystem.listStatusIterator() in S3AFileSystem
- Resolved