You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2020/10/13 13:17:23 UTC
[hadoop] branch branch-3.3 updated: HDFS-15626.
TestWebHDFS.testLargeDirectory failing (#2380)
This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 351b149 HDFS-15626. TestWebHDFS.testLargeDirectory failing (#2380)
351b149 is described below
commit 351b1498d36f06dc54c21be241fd54ed15bc4fdb
Author: Mukund Thakur <mt...@cloudera.com>
AuthorDate: Tue Oct 13 17:57:55 2020 +0530
HDFS-15626. TestWebHDFS.testLargeDirectory failing (#2380)
Fixes the regression caused by HADOOP-17281, where the WebHDFS client
listStatusIterator (correctly) throws NoSuchElementException when next()
runs out of values.
Contributed by Mukund Thakur.
Change-Id: I6cec41c20467920cf21f169653553535414b2680
---
.../src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java
index 3ee7fcb..e945962 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java
@@ -52,6 +52,7 @@ import java.util.Collection;
import java.util.EnumSet;
import java.util.Iterator;
import java.util.Map;
+import java.util.NoSuchElementException;
import java.util.Random;
import com.google.common.collect.ImmutableList;
@@ -399,7 +400,7 @@ public class TestWebHDFS {
try {
it.next();
fail("Iterator should error if out of elements.");
- } catch (IllegalStateException e) {
+ } catch (NoSuchElementException e) {
// pass
}
return null;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org