-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Fix testResyncAfterPrimaryPromotion #52615
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
Conversation
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)); |
There was a problem hiding this comment.
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.
@elasticmachine run elasticsearch-ci/1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adjusts the assertion as we might eagerly clean up translog during resync since elastic#52556 Relates elastic#52556 Closes elastic#52598
Adjusts the assertion as we might eagerly clean up translog during resync since #52556
Relates #52556
Closes #52598