dongjoon-hyun commented on a change in pull request #35553:
URL: https://github.com/apache/spark/pull/35553#discussion_r816389913
##########
File path:
resource-managers/kubernetes/integration-tests/src/test/scala/org/apache/spark/deploy/k8s/integrationtest/VolcanoTestsSuite.scala
##########
@@ -63,8 +150,40 @@ private[spark] trait VolcanoTestsSuite { k8sSuite:
KubernetesSuite =>
}
)
}
+
+ test("Run 4 SparkPi Jobs with 2 volcano queues (queue scheduling)",
k8sTestTag, volcanoTag) {
+ createOrReplaceYAMLResource(VOLCANO_Q0_DISABLE_Q1_ENABLE_YAML)
+ val jobNum = 4
+ val groupLocator = "queue-test" +
UUID.randomUUID().toString.replaceAll("-", "")
+ // Submit two jobs into disabled queue0 and enabled queue1
+ (1 to jobNum).foreach { i =>
+ Future {
+ runJobAndVerify(i.toString, Option(groupLocator), Option(s"queue${i %
2}"))
+ }
+ }
+ // There are two `Succeeded` jobs and two `Pending` jobs
+ Eventually.eventually(TIMEOUT, INTERVAL) {
+ val completedPods = getPods("driver", groupLocator, "Succeeded")
+ assert(completedPods.size === 2)
+ val pendingPods = getPods("driver", groupLocator, "Pending")
+ assert(pendingPods.size === 2)
+ }
+ // Now, enable all queues, then all jobs completed
+ createOrReplaceYAMLResource(VOLCANO_ENABLE_Q0_AND_Q1_YAML)
Review comment:
Please make a separate test case for this.
--
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]