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