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

    https://github.com/apache/spark/pull/2514#discussion_r18058855
  
    --- Diff: 
core/src/test/scala/org/apache/spark/util/collection/ExternalSorterSuite.scala 
---
    @@ -707,4 +709,63 @@ class ExternalSorterSuite extends FunSuite with 
LocalSparkContext with PrivateMe
           Some(agg), Some(new HashPartitioner(FEW_PARTITIONS)), None, None)
         assertDidNotBypassMergeSort(sorter4)
       }
    +
    +  test("sort without breaking sorting contracts") {
    +    val conf = createSparkConf(true)
    +    conf.set("spark.shuffle.memoryFraction", "0.001")
    +    conf.set("spark.shuffle.manager", "sort")
    +    sc = new SparkContext("local-cluster[1,1,512]", "test", conf)
    +
    +    // Using wrongHashOrdering to show integer overflow introduced 
exception.
    +    val rand = new Random
    --- End diff --
    
    Just seed this at a given value that you see causes the exception to occur.


---
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