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

Let only successful run expire due to age #12237

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

jonmv
Copy link
Member

@jonmv jonmv commented Feb 18, 2020

@mpolden please review.

This fixes a problem where a NoSuchElementException was thrown when the
only run was a success, this expired, and a new run failed.
The solution is simply to throw away the success in this case, as we
have no logs for it anyway

@mpolden please review.

This fixes a problem where a NoSuchElementException was thrown when the
only run was a success, this expired, and a new run failed.
The solution is simply to throw away the success in this case, as we
have no logs for it anyway
@Test
public void onlySuccessfulRunExpiresThenAnotherFails() {
DeploymentTester tester = new DeploymentTester();
JobController jobs = tester.controller().jobController();
Copy link
Member

@mpolden mpolden Feb 18, 2020

Choose a reason for hiding this comment

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

To var or not to var, that is the question.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'm not settled on that one yet :)

@jonmv jonmv merged commit 67f7e2a into master Feb 18, 2020
@jonmv jonmv deleted the jvenstad/handle-only-successful-run-expiring branch February 18, 2020 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants