You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2020/02/21 20:05:15 UTC

[cassandra] branch trunk updated: Filter nulls from assertNoUnexpectedThreadsStarted.

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/trunk by this push:
     new dc8f94a  Filter nulls from assertNoUnexpectedThreadsStarted.
dc8f94a is described below

commit dc8f94a653a3cdb963bcc781562bb2fe63dbc575
Author: Brandon Williams <br...@apache.org>
AuthorDate: Fri Feb 21 09:36:10 2020 -0600

    Filter nulls from assertNoUnexpectedThreadsStarted.
    
    Patch by brandonwilliams, reviewed by David Capwell for CASSANDRA-15575
---
 test/unit/org/apache/cassandra/tools/ToolsTester.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/unit/org/apache/cassandra/tools/ToolsTester.java b/test/unit/org/apache/cassandra/tools/ToolsTester.java
index 8dd7314..391c9b9 100644
--- a/test/unit/org/apache/cassandra/tools/ToolsTester.java
+++ b/test/unit/org/apache/cassandra/tools/ToolsTester.java
@@ -29,6 +29,7 @@ import java.security.Permission;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
+import java.util.Objects;
 import java.util.Set;
 import java.util.regex.Pattern;
 import java.util.stream.Collectors;
@@ -82,6 +83,7 @@ public abstract class ToolsTester
                               .collect(Collectors.toSet());
 
         Set<String> current = Arrays.stream(threads.getThreadInfo(threads.getAllThreadIds()))
+                                    .filter(Objects::nonNull)
                                     .map(ThreadInfo::getThreadName)
                                     .collect(Collectors.toSet());
 


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