Github user gaborgsomogyi commented on a diff in the pull request: https://github.com/apache/spark/pull/19893#discussion_r155385446 --- Diff: core/src/test/scala/org/apache/spark/SparkFunSuite.scala --- @@ -52,6 +66,23 @@ abstract class SparkFunSuite getTestResourceFile(file).getCanonicalPath } + private def runningThreadNames(): Set[String] = { + Thread.getAllStackTraces.keySet().map(_.getName).toSet + } + + private def printRemainingThreadNames(): Unit = { + val currentThreadNames = runningThreadNames() + val whitelistedThreadNames = currentThreadNames + .filterNot { s => threadWhiteList.exists(s.matches(_)) } + val remainingThreadNames = whitelistedThreadNames.diff(beforeAllTestThreadNames) --- End diff -- Compressed.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org