[ 
https://issues.apache.org/jira/browse/FLINK-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16697387#comment-16697387
 ] 

ASF GitHub Bot commented on FLINK-10985:
----------------------------------------

GJL commented on a change in pull request #7166: [FLINK-10985][tests] Enable 
submission of multiple jobs.
URL: https://github.com/apache/flink/pull/7166#discussion_r235997963
 
 

 ##########
 File path: flink-jepsen/docker/run-tests.sh
 ##########
 @@ -26,6 +28,27 @@ n2
 n3
 EOF
 
-common_jepsen_args+=(--nodes-file ${dockerdir}/nodes)
+common_jepsen_args+=(--ha-storage-dir hdfs:///flink
+--test-spec "${dockerdir}/data-stream-test-program-parallelism-1.edn"
+--tarball ${2}
+--ssh-private-key ~/.ssh/id_rsa
+--nodes-file ${dockerdir}/nodes)
+
+for i in $(seq 1 ${1})
+do
+  echo "Executing run #${i} of ${1}"
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-task-managers 
--deployment-mode yarn-session
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-job-managers 
--deployment-mode yarn-session
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen 
fail-name-node-during-recovery --deployment-mode yarn-session
+
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-task-managers 
--deployment-mode yarn-job
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-job-managers 
--deployment-mode yarn-job
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen 
fail-name-node-during-recovery --deployment-mode yarn-job
+
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-task-managers 
--deployment-mode mesos-session
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-job-managers 
--deployment-mode mesos-session
 
-. ${dockerdir}/../scripts/run-tests.sh ${1} ${2} 1
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-job-managers 
--deployment-mode standalone-session
+  lein run test "${common_jepsen_args[@]}" --nemesis-gen kill-job-managers 
--client-gen cancel-job --deployment-mode standalone-session
 
 Review comment:
   cancel-jobs

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Enable multiple Job Submission in distributed Tests
> ---------------------------------------------------
>
>                 Key: FLINK-10985
>                 URL: https://issues.apache.org/jira/browse/FLINK-10985
>             Project: Flink
>          Issue Type: New Feature
>          Components: Tests
>    Affects Versions: 1.8.0
>            Reporter: Gary Yao
>            Assignee: Gary Yao
>            Priority: Major
>              Labels: pull-request-available
>
> *Description*
> Jepsen tests only allow submission of a single job. It should be possible to 
> submit multiple jobs to a session cluster and assert that all jobs are 
> running at the end of the test.
> *Acceptance Criteria*
> * Multiple jobs can be submitted to a session cluster
> * Jobs to be submitted (jars files, job args, main class) should be specified 
> in an .edn file
> * Checks at the end of the tests are performed for all jobs



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to