-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-10986][tests] Implement DB to setup Apache Kafka #7173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This enables submission of multiple jobs in the Jepsen tests. The job specifications are in an .edn file that must be passed as command line arguments. The checker verifies that all jobs are running at the end of the test. The job cancellation function now cancels all jobs at once. Delete script/run-tests.sh and move code to docker/run-tests.sh.
| :job-args "--parallelism 1 --checkpointInterval 5000 --numKeys 1000 --topic kafka-test-topic --sleep 200 --semantic exactly-once --bootstrap.servers localhost:9092 --transaction.timeout.ms 600000 --checkpointDir hdfs:///flink-checkpoints" | ||
| :main-class "com.dataartisans.flink.example.eventpattern.DataGeneratorJob"} | ||
| {:job-jar "/jepsen/bin/flink-state-machine-kafka-1.0-SNAPSHOT.jar" | ||
| :job-args "--parallelism 1 --checkpointInterval 5000 --input-topic kafka-test-topic --bootstrap.servers localhost:9092 --checkpointDir hdfs:///flink-checkpoints" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add --auto.offset.reset earliest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
| ;; See the License for the specific language governing permissions and | ||
| ;; limitations under the License. | ||
|
|
||
| {:dbs [:hadoop :zookeeper :flink-mesos-session] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:mesos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
This enables toggling the setup of test dependencies, such as Hadooop, Mesos, and, ZooKeeper through the --test-spec edn file. The type of the Flink cluster can also be specified via: :flink-yarn-job :flink-yarn-session :flink-mesos-session, and :flink-standalone-session. Retryable operations that exhausted all attempts, now propagate the exception by default. This is to fail fast if during the db/setup!, an operation, such as Flink job submission, fails to complete.
tillrohrmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Afaik it looks good to me. +1 for merging.
What is the purpose of the change
Implement option to setup Kafka for distributed testing
Brief change log
Verifying this change
This change is already covered by existing tests, such as Jepsen tests.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no)Documentation