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 occasional SearchServiceTests failure #39697

Merged
merged 3 commits into from
Mar 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment
Christoph Büscher committed Mar 6, 2019

Unverified

This user has not yet uploaded their public signing key.
commit b9a9ff2b1df52557d39c29024d29d6d3ee54ca54
Original file line number Diff line number Diff line change
@@ -198,6 +198,7 @@ public void testClearIndexDelete() {
}

public void testCloseSearchContextOnRewriteException() {
// if refresh happens while checking the exception, the subsequent reference count might not match, so we switch it off
createIndex("index", Settings.builder().put("index.refresh_interval", -1).build());
cbuescher marked this conversation as resolved.
Show resolved Hide resolved
client().prepareIndex("index", "type", "1").setSource("field", "value").setRefreshPolicy(IMMEDIATE).get();