[ https://issues.apache.org/jira/browse/CASSANDRA-15575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041985#comment-17041985 ]
Brandon Williams commented on CASSANDRA-15575: ---------------------------------------------- There can be a thread returned in getAllThreadIds that dies before getThreadInfo is called on it, resulting in the NPE. The simplest thing to do is just filter out nulls here, and the good news is this condition very rarely occurs, so whatever thread it is that is dying before we get its info, is safe as far as the test is concerned. Patch to filter nulls here: https://github.com/driftx/cassandra/tree/CASSANDRA-15575 > Fix flaky test > org.apache.cassandra.tools.StandaloneVerifierTest.testStandaloneVerifier_WithArgs > ------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-15575 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15575 > Project: Cassandra > Issue Type: Bug > Components: Test/unit, Tool/sstable > Reporter: David Capwell > Assignee: Brandon Williams > Priority: Normal > Fix For: 4.0-alpha > > > Failure was seen on java 8. > {code} > java.lang.NullPointerException > at > java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) > at > java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) > at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) > at > java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) > at > java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) > at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) > at > java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) > at > org.apache.cassandra.tools.ToolsTester.assertNoUnexpectedThreadsStarted(ToolsTester.java:86) > at > org.apache.cassandra.tools.StandaloneVerifierTest.testStandaloneVerifier_WithArgs(StandaloneVerifierTest.java:45) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org