Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/src/test/scala/org/apache/spark/rdd/PipedRDDSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ class PipedRDDSuite extends SparkFunSuite with SharedSparkContext {
val result = piped.mapPartitions(_ => Array.emptyIntArray.iterator)

assert(result.collect().length === 0)
sc.listenerBus.waitUntilEmpty(10000)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix and the remaining is typo fix from err to in.


// collect stderr writer threads
val stderrWriterThread = Thread.getAllStackTraces.keySet().asScala
// collect stdin writer threads
val stdinWriterThread = Thread.getAllStackTraces.keySet().asScala
.find { _.getName.startsWith(PipedRDD.STDIN_WRITER_THREAD_PREFIX) }

assert(stderrWriterThread.isEmpty)
assert(stdinWriterThread.isEmpty)
}

test("advanced pipe") {
Expand Down