hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [hadoop] branch trunk updated: HADOOP-16650. ITestS3AClosedFS failing.
Date Thu, 10 Oct 2019 16:32:43 GMT
This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new effe608  HADOOP-16650. ITestS3AClosedFS failing.
effe608 is described below

commit effe6087a5763e087460148965004238c159d287
Author: Steve Loughran <stevel@cloudera.com>
AuthorDate: Thu Oct 10 17:32:12 2019 +0100

    HADOOP-16650. ITestS3AClosedFS failing.
    
    Contributed by Steve Loughran.
    
    Change-Id: Ia9bb84bd6455e210a54cfe9eb944feeda8b58da9
---
 .../src/test/java/org/apache/hadoop/fs/s3a/S3ATestUtils.java      | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/S3ATestUtils.java
b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/S3ATestUtils.java
index 592c4be..c8e0d36 100644
--- a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/S3ATestUtils.java
+++ b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/S3ATestUtils.java
@@ -1396,13 +1396,17 @@ public final class S3ATestUtils {
   }
 
   /**
-   * Get a set containing the names of all active threads.
+   * Get a set containing the names of all active threads,
+   * stripping out all test runner threads.
    * @return the current set of threads.
    */
   public static Set<String> getCurrentThreadNames() {
-    return Thread.getAllStackTraces().keySet()
+    TreeSet<String> threads = Thread.getAllStackTraces().keySet()
         .stream()
         .map(Thread::getName)
+        .filter(n -> n.startsWith("JUnit"))
+        .filter(n -> n.startsWith("surefire"))
         .collect(Collectors.toCollection(TreeSet::new));
+    return threads;
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message