Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18076#discussion_r118138127
  
    --- Diff: core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala ---
    @@ -1082,6 +1082,22 @@ class RDDSuite extends SparkFunSuite with 
SharedSparkContext {
         assert(totalPartitionCount == 10)
       }
     
    +  test("SPARK-18406: race between end-of-task and completion iterator read 
lock release") {
    +    val rdd = sc.parallelize(1 to 1000, 10)
    +    rdd.cache()
    +
    +    rdd.mapPartitions { iter =>
    +      ThreadUtils.runInNewThread("TestThread") {
    --- End diff --
    
    Nice use of this helper method. I wasn't aware of this, but it's pretty 
nice. I'll use it in my own tests going forward.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to