[
https://issues.apache.org/jira/browse/HADOOP-17300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mukund Thakur updated HADOOP-17300:
-----------------------------------
Description:
FileSystem.DirListingIterator.next() call should return NoSuchElementException
rather than IllegalStateException
Stacktrace for new test failure:
{code:java}
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)
{code}
CC [[email protected]]
was:
FileSystem.DirListingIterator.next() call should return NoSuchElementException
rather than IllegalStateException
CC [[email protected]]
> FileSystem.DirListingIterator.next() call should return NoSuchElementException
> ------------------------------------------------------------------------------
>
> Key: HADOOP-17300
> URL: https://issues.apache.org/jira/browse/HADOOP-17300
> Project: Hadoop Common
> Issue Type: Bug
> Components: common, fs
> Reporter: Mukund Thakur
> Assignee: Mukund Thakur
> Priority: Major
>
> FileSystem.DirListingIterator.next() call should return
> NoSuchElementException rather than IllegalStateException
>
> Stacktrace for new test failure:
>
> {code:java}
> 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)
> {code}
>
> CC [[email protected]]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]