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-26977] Remove no longer valid tests in JobMasterStopWithSavepointITCase #19439

Closed
wants to merge 2 commits into from

Conversation

dawidwys
Copy link
Contributor

@dawidwys dawidwys commented Apr 12, 2022

What is the purpose of the change

Tests in JobMasterStopWithSavepointITCase are no longer valid. In
particular the way number of restarts is calculated is wrong. Moreover
cases that were supposed to be tested in the class are already covered
in SavepointITCase.

Verifying this change

This change removes invalid tests.

Tests coverage:

  • JobMasterStopWithSavepointITCase#throwingExceptionOnCallbackWithRestartsHelper, JobMasterStopWithSavepointITCase#throwingExceptionOnCallbackWithoutRestartsHelper are covered by SavepointITCase#testStopWithSavepointFailingAfterSnapshotCreation and org.apache.flink.test.checkpointing.SavepointITCase#testStopWithSavepointFailsOverToSavepoint
  • JobMasterStopWithSavepointITCase#testRestartCheckpointCoordinatorIfStopWithSavepointFails is covered by SavepointITCase#testStopWithSavepointWithDrainGlobalFailoverIfSavepointAborted

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

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

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

…intITCase

Tests in JobMasterStopWithSavepointITCase are no longer valid. In
particular the way number of restarts is calculated is wrong. Moreover
cases that were supposed to be tested in the class are already covered
in SavepointITCase.
@dawidwys dawidwys requested review from dmvk and pnowojski April 12, 2022 12:07
@flinkbot
Copy link
Collaborator

flinkbot commented Apr 12, 2022

CI report:

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

@dawidwys
Copy link
Contributor Author

@flinkbot run azure

Copy link
Member

@dmvk dmvk left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dmvk
Copy link
Member

dmvk commented Apr 13, 2022

Maybe the first commit message should be renamed:

Fix SavepointITCase#testStopWithSavepointFailingAfterSnapshotCreation

In my understanding it doesn't really fix anything and just aligns the code path for both schedulers. Is that correct?

@dawidwys dawidwys closed this in 3157962 Apr 13, 2022
dawidwys added a commit that referenced this pull request Apr 13, 2022
…SnapshotCreation for both schedulers

This closes #19439
sergeitsar pushed a commit to fentik/flink that referenced this pull request May 19, 2022
JasonLeeCoding pushed a commit to JasonLeeCoding/flink that referenced this pull request May 27, 2022
zstraw pushed a commit to zstraw/flink that referenced this pull request Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants