Skip to content

Fix InternalEngineTests.testSeqNoAndCheckpoints #51630

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

Merged
merged 4 commits into from
Jan 30, 2020

Conversation

original-brownbear
Copy link
Member

@original-brownbear original-brownbear commented Jan 29, 2020

If we force flush in the rarely condition ( https://github.com/elastic/elasticsearch/pull/51630/files#diff-8a78dedbc25426973364f21bdc81c27aL2147) while possibly triggering a merge the local checkpoint may change
from the expectation from the loop that just increments on every operation.

Closes #51604

If we force flush while possibly triggering a merge the local checkpoint may change
from the expectation from the loop that just increments on every operation.

Closes elastic#51604
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. v8.0.0 v7.7.0 labels Jan 29, 2020
@elasticmachine
Copy link
Collaborator

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

@dnhatn
Copy link
Member

dnhatn commented Jan 30, 2020

Thanks, Armin. I think the problem is that we do not set the start time for indexes and deletes, then a background merge can trigger a flush.

@original-brownbear
Copy link
Member Author

Thanks @dnhatn that is a nicer fix indeed :)

@original-brownbear
Copy link
Member Author

Thanks Yannick + Nhat!

@original-brownbear original-brownbear merged commit 8f3f680 into elastic:master Jan 30, 2020
@original-brownbear original-brownbear deleted the 51604 branch January 30, 2020 13:07
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jan 30, 2020
* Fix InternalEngineTests.testSeqNoAndCheckpoints

If we force flush while possibly triggering a merge the local checkpoint may change
from the expectation from the loop that just increments on every operation.

Closes elastic#51604
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jan 30, 2020
* Fix InternalEngineTests.testSeqNoAndCheckpoints

If we force flush while possibly triggering a merge the local checkpoint may change
from the expectation from the loop that just increments on every operation.

Closes elastic#51604
original-brownbear added a commit that referenced this pull request Jan 30, 2020
* Fix InternalEngineTests.testSeqNoAndCheckpoints

If we force flush while possibly triggering a merge the local checkpoint may change
from the expectation from the loop that just increments on every operation.

Closes #51604
original-brownbear added a commit that referenced this pull request Jan 30, 2020
* Fix InternalEngineTests.testSeqNoAndCheckpoints

If we force flush while possibly triggering a merge the local checkpoint may change
from the expectation from the loop that just increments on every operation.

Closes #51604
@polyfractal polyfractal added v7.6.0 and removed v7.6.1 labels Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. >test Issues or PRs that are addressing/adding tests v7.6.0 v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] InternalEngineTests.testSeqNoAndCheckpoints fails
6 participants