Skip to content
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

[FLINK-15214] Introduce multiple submission e2e test #10666

Closed
wants to merge 5 commits into from

Conversation

KarmaGYZ
Copy link
Contributor

@KarmaGYZ KarmaGYZ commented Dec 23, 2019

What is the purpose of the change

Introduce multiple submission e2e test for Flink's Mesos integration.

Brief change log

  • 43b1425..2885bab: Hotfixes, refactors and code clean-ups.
  • ab3c8ac: Introduce multiple submission e2e test
  • cc596f9: Enable it in Travis and nightly script

Verifying this change

  • Run multiple submission e2e test
    ./run-single-test.sh test-scripts/test_mesos_multi_submission.sh

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? no

@flinkbot
Copy link
Collaborator

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit cc596f9 (Mon Dec 23 11:33:36 UTC 2019)

Warnings:

  • No documentation files were touched! Remember to keep the Flink docs up to date!
  • This pull request references an unassigned Jira ticket. According to the code contribution guide, tickets need to be assigned before starting with the implementation work.

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.


The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@flinkbot
Copy link
Collaborator

flinkbot commented Dec 23, 2019

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run travis re-run the last Travis build
  • @flinkbot run azure re-run the last Azure build

@KarmaGYZ
Copy link
Contributor Author

KarmaGYZ commented Jan 6, 2020

Thanks for the review @GJL . All the comments addressed.

@KarmaGYZ
Copy link
Contributor Author

KarmaGYZ commented Jan 6, 2020

Travis gives green light to relevant test. https://travis-ci.org/KarmaGYZ/flink/builds/633110748

@KarmaGYZ
Copy link
Contributor Author

KarmaGYZ commented Jan 6, 2020

@flinkbot run travis

Copy link
Member

@GJL GJL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I only had some minor comments.

flink-end-to-end-tests/test-scripts/common.sh Show resolved Hide resolved
@@ -51,6 +51,7 @@ run_test "Run kubernetes test" "$END_TO_END_DIR/test-scripts/test_kubernetes_emb
run_test "Run kubernetes session test" "$END_TO_END_DIR/test-scripts/test_kubernetes_session.sh"
if [[ "${HADOOP_INTEGRATION}" = "with-hadoop" ]]; then
run_test "Run Mesos WordCount test" "$END_TO_END_DIR/test-scripts/test_mesos_wordcount.sh"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After adding the new multiple submissions test, do we still need the word count test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need a "openbox" test case for deploying Flink on Mesos cluster. Anyway, it should be discussed in another ticket. WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you define what you mean by "openbox"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think each test case better not have multiple purposes so that we could find out the root cause quickly. I treat the WordCount case like a test for basic process of running Flink job on Mesos, including starting appmaster, running a simple job and verifying the correctness of result. I prefer to keep it in release 1.10, but I'm ok to remove it when the time overhead of E2E tests become severe.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that a separate test makes it easier to locate the root cause. However, due to being expensive, E2E tests should not be used for exhaustively testing all cases. Currently, running all E2E tests take more than 24 CPU hours on Travis. e2e - container - hadoop 2.8 takes ~43 minutes on Travis, which is not great but acceptable. Imo, if we decide to add more Mesos tests, we should start to consolidate soon.

cc: @tillrohrmann

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with your conclusion that ideally we try to separate test cases but in this case it might acceptable to consolidate them in order to save build time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine. So, in which release version we need to remove the WordCount case? 1.10 or 1.11? I prefer to remove it in next release version, when two other Mesos test cases add. I don't have a strong opinion though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok to consolidate them with the next test that we add.

@KarmaGYZ
Copy link
Contributor Author

KarmaGYZ commented Jan 7, 2020

PR updated. Travis link https://travis-ci.org/KarmaGYZ/flink/builds/633584594

@GJL
Copy link
Member

GJL commented Jan 7, 2020

Merging.

@GJL GJL closed this in ec19b7a Jan 7, 2020
GJL pushed a commit that referenced this pull request Jan 7, 2020
@KarmaGYZ KarmaGYZ deleted the FLINK-15214 branch January 11, 2021 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants