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

Fix testResyncAfterPrimaryPromotion #52615

Merged
merged 1 commit into from
Feb 21, 2020
Merged

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Feb 21, 2020

Adjusts the assertion as we might eagerly clean up translog during resync since #52556

Relates #52556
Closes #52598

@dnhatn dnhatn added >test Issues or PRs that are addressing/adding tests :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. v8.0.0 v7.7.0 labels Feb 21, 2020
@dnhatn dnhatn requested a review from ywelsch February 21, 2020 02:38
@elasticmachine
Copy link
Collaborator

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

@@ -378,7 +377,7 @@ public void testResyncAfterPrimaryPromotion() throws Exception {
assertThat(source.source.utf8ToString(), is("{ \"f\": \"normal\"}"));
}
}
assertThat(translogOperations, is(initialDocs + extraDocs));
Copy link
Member Author

Choose a reason for hiding this comment

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

I spent some time to separate these two expectations, but it was more complicated than I thought. I think it's fine to assert like this.

@dnhatn
Copy link
Member Author

dnhatn commented Feb 21, 2020

testReadLargeBlobWithRetries

@elasticmachine run elasticsearch-ci/1

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM

@ywelsch ywelsch merged commit 9890589 into elastic:master Feb 21, 2020
@dnhatn dnhatn deleted the fix-resync branch February 24, 2020 23:46
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Feb 26, 2020
Adjusts the assertion as we might eagerly clean up translog during resync since elastic#52556

Relates elastic#52556
Closes elastic#52598
dnhatn added a commit that referenced this pull request Feb 26, 2020
Adjusts the assertion as we might eagerly clean up translog during resync since #52556

Relates #52556
Closes #52598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. >test Issues or PRs that are addressing/adding tests v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] RecoveryDuringReplicationTests.testResyncAfterPrimaryPromotion failing reproducibly
4 participants