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-11181][tests] Fix SimpleRecoveryFailureRateStrategyITBase test error #7316

Closed
wants to merge 1 commit into from

Conversation

hequn8128
Copy link
Contributor

What is the purpose of the change

This pull request fix SimpleRecoveryFailureRateStrategyITBase test error.
The configuration has not been passed to the MiniClusterWithClientResource.

Brief change log

  • Pass configuration to MiniClusterWithClientResource.

Verifying this change

This change is already covered by existing tests, such as (please describe tests).

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: (yes / no / don't know)
  • 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)

Copy link
Member

@sunjincheng121 sunjincheng121 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @hequn8128
I only left one suggestion.

Bests,
Jincheng

@@ -59,7 +60,7 @@ public void testFailedRunThenSuccessfulRun() throws Exception {

env.generateSequence(1, 10)
.rebalance()
.map(new FailingMapper1<Long>())
Copy link
Member

Choose a reason for hiding this comment

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

Add finally reset will work well.

finally {
			FailingMapper1.failuresBeforeSuccess = 1;
		}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion!

@sunjincheng121 sunjincheng121 self-assigned this Jan 3, 2019
@hequn8128
Copy link
Contributor Author

@sunjincheng121 Thanks a lot for your review and suggestions. I have updated the code.

Best, Hequn

@sunjincheng121
Copy link
Member

Thanks for the quick update! @hequn8128
Will be merged.

Thanks, Jincheng

sunjincheng121 pushed a commit to sunjincheng121/flink that referenced this pull request Jan 3, 2019
asfgit pushed a commit that referenced this pull request Jan 3, 2019
@zentol zentol closed this Jan 3, 2019
@zentol zentol reopened this Jan 3, 2019
@zentol zentol closed this Jan 3, 2019
tisonkun pushed a commit to tisonkun/flink that referenced this pull request Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants