spark-test commented on code in PR #56957:
URL: https://github.com/apache/spark/pull/56957#discussion_r4508912904


##########
core/src/test/scala/org/apache/spark/scheduler/TaskSchedulerImplSuite.scala:
##########
@@ -1428,18 +1599,14 @@ class TaskSchedulerImplSuite extends SparkFunSuite with 
LocalSparkContext
   test("Locality should be used for bulk offers even with delay scheduling 
off") {
     val conf = new SparkConf()
       .set(config.LOCALITY_WAIT.key, "0")
+      .set(config.TASK_ASSIGNMENT_STRATEGY, "none")

Review Comment:
   **Nit (P3):** With the `shuffleOffers` override gone, the deterministic 
order in this test now comes from this `none` setting, but the comments a few 
lines below still say the anonymous `TaskSchedulerImpl` subclass exists 'to let 
us control the way offers are shuffled, so we can be sure we try both 
permutations', and refer to the order 'after the task scheduler shuffles them'. 
The subclass now only injects the clock. Someone who trusts those comments 
could remove this setting, and the test would keep passing while no longer 
exercising both orders deterministically.
   
   See **Shared repair plan 2** in the review body.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to