dongjoon-hyun commented on code in PR #44906:
URL: https://github.com/apache/spark/pull/44906#discussion_r1503590785


##########
core/src/test/scala/org/apache/spark/deploy/master/MasterSuite.scala:
##########
@@ -661,6 +662,52 @@ class MasterSuite extends SparkFunSuite
     scheduleExecutorsForAppWithMultiRPs(withMaxCores = true)
   }
 
+
+  private val workerSelectionPolicyTestCases = Seq(
+    (CORES_FREE_ASC, true, List("10001", "10002")),
+    (CORES_FREE_ASC, false, List("10001")),
+    (CORES_FREE_DESC, true, List("10004", "10005")),
+    (CORES_FREE_DESC, false, List("10005")),
+    (MEMORY_FREE_ASC, true, List("10001", "10005")),
+    (MEMORY_FREE_ASC, false, List("10001")),
+    (MEMORY_FREE_DESC, true, List("10002", "10003")),
+    (MEMORY_FREE_DESC, false, Seq("10002")),
+    (WORKER_ID, true, Seq("10001", "10002")),
+    (WORKER_ID, false, Seq("10001")))
+
+  workerSelectionPolicyTestCases.foreach { case (policy, spreadOut, expected) 
=>
+    test(s"SPARK-46881: scheduling with workerSelectionPolicy - $policy 
($spreadOut)") {

Review Comment:
   To @HyukjinKwon , here is the follow-up.
   - #45274



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