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

Makes testCcrRepositoryFetchesSnapshotShardSizeFromIndexShardStoreStats more robust #64976

Merged
merged 2 commits into from
Nov 12, 2020

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Nov 12, 2020

Today this test fails because the sizes of the snapshot shards are only kept in a very short period of time in the InternalSnapshotsInfoService and are not guaranteed to exist once the shards are correctly assigned.

This test implements a suggestion from Armin to make the test both simpler and less prone to failures.

closes #64167

@tlrx tlrx added >test Issues or PRs that are addressing/adding tests :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features v8.0.0 v7.11.0 labels Nov 12, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/CCR)

@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Nov 12, 2020
Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM thanks Tanguy! (just a few smaller optional suggested (IMO) simplifications)

@tlrx tlrx merged commit ef5b672 into elastic:master Nov 12, 2020
@tlrx tlrx deleted the fix-64167-assertbusy-cs-thread branch November 12, 2020 11:27
@tlrx
Copy link
Member Author

tlrx commented Nov 12, 2020

Thanks Armin!

tlrx added a commit to tlrx/elasticsearch that referenced this pull request Nov 12, 2020
…ts more robust (elastic#64976)

Today this test fails because the sizes of the snapshot 
shards are only kept in a very short period of time in 
the InternalSnapshotsInfoService and are not 
guaranteed to exist once the shards are correctly 
assigned.

closes elastic#64167
tlrx added a commit to tlrx/elasticsearch that referenced this pull request Nov 12, 2020
…ts more robust (elastic#64976)

Today this test fails because the sizes of the snapshot 
shards are only kept in a very short period of time in 
the InternalSnapshotsInfoService and are not 
guaranteed to exist once the shards are correctly 
assigned.

closes elastic#64167
tlrx added a commit that referenced this pull request Nov 12, 2020
…ts more robust (#64976) (#64987)

Today this test fails because the sizes of the snapshot 
shards are only kept in a very short period of time in 
the InternalSnapshotsInfoService and are not 
guaranteed to exist once the shards are correctly 
assigned.

closes #64167
tlrx added a commit that referenced this pull request Nov 12, 2020
…ts more robust (#64976) (#64989)

Today this test fails because the sizes of the snapshot 
shards are only kept in a very short period of time in 
the InternalSnapshotsInfoService and are not 
guaranteed to exist once the shards are correctly 
assigned.

closes #64167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/CCR Issues around the Cross Cluster State Replication features Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v7.11.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] CcrRepositoryIT.testCcrRepositoryFetchesSnapshotShardSizeFromIndexShardStoreStats
4 participants