Skip to content

Assert job is not null in FullClusterRestartIT#38468

Merged
polyfractal merged 1 commit intoelastic:6.7from
polyfractal:pr#38218
Feb 8, 2019
Merged

Assert job is not null in FullClusterRestartIT#38468
polyfractal merged 1 commit intoelastic:6.7from
polyfractal:pr#38218

Conversation

@polyfractal
Copy link
Copy Markdown
Contributor

waitForRollUpJob is an assertBusy that waits for the rollup job
to appear in the tasks list, and waits for it to be a certain state.

However, there was a null check around the state assertion, which meant
if the job was null, the assertion would be skipped, and the
assertBusy would pass withouot an exception. This could then lead to
downstream assertions to fail because the job was not actually ready,
or in the wrong state.

This changes the test to assert the job is not null, so the assertBusy
operates as intended.
Backport of #38218

`waitForRollUpJob` is an assertBusy that waits for the rollup job
to appear in the tasks list, and waits for it to be a certain state.

However, there was a null check around the state assertion, which meant
if the job _was_ null, the assertion would be skipped, and the
assertBusy would pass withouot an exception.  This could then lead to
downstream assertions to fail because the job was not actually ready,
or in the wrong state.

This changes the test to assert the job is not null, so the assertBusy
operates as intended.
Backport of elastic#38218
@polyfractal polyfractal added >test Issues or PRs that are addressing/adding tests :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data backport labels Feb 5, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytics-geo

@jasontedor jasontedor changed the base branch from 6.x to 6.7 February 6, 2019 13:09
@jasontedor jasontedor reopened this Feb 6, 2019
@polyfractal polyfractal merged commit 8cf12fa into elastic:6.7 Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data >test Issues or PRs that are addressing/adding tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants