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

Test: Add dummy docs injection to indexRandom #6235

Merged
merged 2 commits into from May 19, 2014

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented May 19, 2014

This adds dummy docs to ElasticsearchIntegrationTest#indexRandom.
It indexes document with an empty body into the indices specified by the docs
and deletes them after all docs have been indexed. This produces gaps in
the segments and enforces usage of accept docs on lower levels to ensure
the features work with delete documents as well.

We currently ask `MatchDocIdSet#matchDoc(int)` before consulting
the accept docs. This can also have a negative performance impact
since `matchDoc(int)` calls might be way more expensive than
acceptDocs calls.

Closes elastic#6234
This commit add `dummy docs` to `ElasticsearchIntegrationTest#indexRandom`.
It indexes document with an empty body into the indices specified by the docs
and deletes them after all docs have been indexed. This produces gaps in
the segments and enforces usage of accept docs on lower levels to ensure
the features work with delete documents as well.
@s1monw s1monw merged commit fc28fbf into elastic:master May 19, 2014
@jpountz
Copy link
Contributor

jpountz commented May 19, 2014

I really like that change!

@s1monw s1monw deleted the inject_dummy_documents branch May 19, 2014 18:28
@s1monw
Copy link
Contributor Author

s1monw commented May 19, 2014

@jpountz ;)

@clintongormley clintongormley changed the title Add dummy docs injection to indexRandom Test: Add dummy docs injection to indexRandom Jul 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Issues or PRs that are addressing/adding tests v1.3.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants