Skip to content

Fix testRetentionWhileSnapshotInProgress#48219

Merged
AthenaEryma merged 1 commit intoelastic:masterfrom
AthenaEryma:slm/fix-retention-with-snapshot-in-progress-test
Oct 18, 2019
Merged

Fix testRetentionWhileSnapshotInProgress#48219
AthenaEryma merged 1 commit intoelastic:masterfrom
AthenaEryma:slm/fix-retention-with-snapshot-in-progress-test

Conversation

@AthenaEryma
Copy link
Copy Markdown
Contributor

@AthenaEryma AthenaEryma commented Oct 17, 2019

This test could fail for two reasons, both should be fixed by this PR:

  1. It hit a timeout for an assertBusy. This commit increases the
    timeout for that assertBusy.

  2. The snapshot that was supposed to be blocked could, in fact, be
    successful. This is because a previous snapshot had been successfully
    been taken, and no new data had been added between the two snapshots.
    This means that no new segment files needed to be written for the new
    snapshot, so the block on data files was never triggered. This commit
    changes two things: First, it indexes some new data before taking the
    second snapshot (the one that needs to be blocked), and second,
    checks to ensure that the block is actually hit before continuing
    with the test.

This should fix #48159

This test could fail for two reasons:

1) It hit a timeout for an `assertBusy`. This commit increases the
timeout for that `assertBusy`.

2) The snapshot that was supposed to be blocked could, in fact, be
successful. This is because a previous snapshot had been successfully
been taken, and no new data had been added between the two snapshots.
This means that no new segment files needed to be written for the new
snapshot, so the block on data files was never triggered. This commit
changes two things: First, it indexes some new data before taking the
second snapshot (the one that needs to be blocked), and checks to ensure
that the block is actually hit before continuing with the test.
@AthenaEryma AthenaEryma added >test Issues or PRs that are addressing/adding tests :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. v8.0.0 v7.5.0 v7.6.0 labels Oct 17, 2019
@AthenaEryma AthenaEryma requested a review from dakrone October 17, 2019 23:19
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/ILM+SLM)

Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM

@AthenaEryma AthenaEryma merged commit 89397ef into elastic:master Oct 18, 2019
AthenaEryma added a commit to AthenaEryma/elasticsearch that referenced this pull request Oct 18, 2019
This test could fail for two reasons, both should be fixed by this PR:

1) It hit a timeout for an `assertBusy`. This commit increases the
timeout for that `assertBusy`.

2) The snapshot that was supposed to be blocked could, in fact, be
successful. This is because a previous snapshot had been successfully
been taken, and no new data had been added between the two snapshots.
This means that no new segment files needed to be written for the new
snapshot, so the block on data files was never triggered. This commit
changes two things: First, it indexes some new data before taking the
second snapshot (the one that needs to be blocked), and second,
checks to ensure that the block is actually hit before continuing
with the test.
AthenaEryma added a commit to AthenaEryma/elasticsearch that referenced this pull request Oct 18, 2019
This test could fail for two reasons, both should be fixed by this PR:

1) It hit a timeout for an `assertBusy`. This commit increases the
timeout for that `assertBusy`.

2) The snapshot that was supposed to be blocked could, in fact, be
successful. This is because a previous snapshot had been successfully
been taken, and no new data had been added between the two snapshots.
This means that no new segment files needed to be written for the new
snapshot, so the block on data files was never triggered. This commit
changes two things: First, it indexes some new data before taking the
second snapshot (the one that needs to be blocked), and second,
checks to ensure that the block is actually hit before continuing
with the test.
AthenaEryma added a commit that referenced this pull request Oct 18, 2019
This test could fail for two reasons, both should be fixed by this PR:

1) It hit a timeout for an `assertBusy`. This commit increases the
timeout for that `assertBusy`.

2) The snapshot that was supposed to be blocked could, in fact, be
successful. This is because a previous snapshot had been successfully
been taken, and no new data had been added between the two snapshots.
This means that no new segment files needed to be written for the new
snapshot, so the block on data files was never triggered. This commit
changes two things: First, it indexes some new data before taking the
second snapshot (the one that needs to be blocked), and second,
checks to ensure that the block is actually hit before continuing
with the test.
AthenaEryma added a commit that referenced this pull request Oct 18, 2019
This test could fail for two reasons, both should be fixed by this PR:

1) It hit a timeout for an `assertBusy`. This commit increases the
timeout for that `assertBusy`.

2) The snapshot that was supposed to be blocked could, in fact, be
successful. This is because a previous snapshot had been successfully
been taken, and no new data had been added between the two snapshots.
This means that no new segment files needed to be written for the new
snapshot, so the block on data files was never triggered. This commit
changes two things: First, it indexes some new data before taking the
second snapshot (the one that needs to be blocked), and second,
checks to ensure that the block is actually hit before continuing
with the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. >test Issues or PRs that are addressing/adding tests v7.5.0 v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SLMSnapshotBlockingIntegTests.testRetentionWhileSnapshotInProgress fails due to SnapshotInProgress not matching expected values

4 participants