Default wait_for_completion to true

This commit is contained in:
Nik Everett 2016-01-28 12:34:38 -05:00
parent da42838cff
commit 6a2acd348a
12 changed files with 4 additions and 46 deletions

View File

@ -53,7 +53,7 @@ public abstract class AbstractBaseReindexRestHandler<Request extends ActionReque
}
protected void execute(RestRequest request, Request internalRequest, RestChannel channel) throws IOException {
if (request.paramAsBoolean("wait_for_completion", false)) {
if (request.paramAsBoolean("wait_for_completion", true)) {
action.execute(internalRequest, new BulkIndexByScrollResponseContentListener<Response>(channel));
return;
}

View File

@ -11,7 +11,6 @@
- do:
reindex:
wait_for_completion: true
body:
source:
index: source
@ -43,7 +42,6 @@
- do:
reindex:
wait_for_completion: true
body:
source:
index: source
@ -57,7 +55,7 @@
- is_true: took
---
"wait_for_completion=true":
"wait_for_completion=false":
- do:
index:
index: source
@ -69,6 +67,7 @@
- do:
reindex:
wait_for_completion: false
body:
source:
index: source
@ -104,7 +103,6 @@
- do:
catch: conflict
reindex:
wait_for_completion: true
body:
source:
index: source
@ -144,7 +142,6 @@
- do:
reindex:
wait_for_completion: true
body:
conflicts: proceed
source:
@ -172,7 +169,6 @@
- do:
reindex:
wait_for_completion: true
refresh: true
body:
source:
@ -205,7 +201,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -238,7 +233,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -273,7 +267,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -308,7 +301,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: [twitter, blog]
@ -356,7 +348,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
size: 1
source:

View File

@ -18,7 +18,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: test
@ -53,7 +52,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
size: 1
source:

View File

@ -30,7 +30,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: src
@ -76,7 +75,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
conflicts: proceed
source:
@ -124,7 +122,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: src
@ -169,7 +166,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: src

View File

@ -12,7 +12,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: src
@ -43,7 +42,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: src

View File

@ -23,7 +23,6 @@
catch: unavailable
reindex:
timeout: 1s
wait_for_completion: true
body:
source:
index: src
@ -35,7 +34,6 @@
- do:
reindex:
consistency: one
wait_for_completion: true
body:
source:
index: src

View File

@ -12,7 +12,6 @@
- do:
update-by-query:
index: test
wait_for_completion: true
- match: {updated: 1}
- match: {version_conflicts: 0}
- match: {batches: 1}
@ -34,6 +33,7 @@
- do:
update-by-query:
wait_for_completion: false
index: test
- is_true: task.node
- is_true: task.id
@ -72,7 +72,6 @@
catch: conflict
update-by-query:
index: test
wait_for_completion: true
- match: {updated: 0}
- match: {version_conflicts: 1}
- match: {batches: 1}
@ -113,7 +112,6 @@
update-by-query:
index: test
conflicts: proceed
wait_for_completion: true
- match: {updated: 0}
- match: {version_conflicts: 1}
- match: {batches: 1}
@ -141,7 +139,6 @@
- do:
update-by-query:
index: twitter
wait_for_completion: true
body:
query:
match:
@ -172,7 +169,6 @@
- do:
update-by-query:
index: twitter
wait_for_completion: true
size: 1
- match: {updated: 1}
- match: {version_conflicts: 0}
@ -213,5 +209,4 @@
update-by-query:
index: test
scroll_size: 1
wait_for_completion: true
- match: {batches: 3}

View File

@ -45,7 +45,6 @@
- do:
update-by-query:
index: test
wait_for_completion: true
- do:
indices.refresh: {}

View File

@ -12,7 +12,6 @@
- do:
update-by-query:
index: test
wait_for_completion: true
- match: {updated: 1}
- match: {version_conflicts: 0}

View File

@ -24,7 +24,6 @@
update-by-query:
index: test
timeout: 1s
wait_for_completion: true
- match:
failures.0.cause.reason: /Not.enough.active.copies.to.meet.write.consistency.of.\[QUORUM\].\(have.1,.needed.4\)..Timeout\:.\[1s\],.request:.\[BulkShardRequest.to.\[test\].containing.\[1\].requests\]/
@ -32,7 +31,6 @@
update-by-query:
index: test
consistency: one
wait_for_completion: true
- match: {failures: []}
- match: {updated: 1}
- match: {version_conflicts: 0}

View File

@ -12,7 +12,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -52,7 +51,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -112,7 +110,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -156,7 +153,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -215,7 +211,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -261,7 +256,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter
@ -309,7 +303,6 @@
- do:
reindex:
wait_for_completion: true
body:
source:
index: twitter
@ -343,7 +336,6 @@
- do:
reindex:
wait_for_completion: true
refresh: true
body:
source:
@ -385,7 +377,6 @@
- do:
reindex:
refresh: true
wait_for_completion: true
body:
source:
index: twitter

View File

@ -13,7 +13,6 @@
update-by-query:
index: twitter
refresh: true
wait_for_completion: true
body:
script:
inline: ctx._source.user = "not" + ctx._source.user
@ -50,7 +49,6 @@
update-by-query:
refresh: true
index: twitter
wait_for_completion: true
body:
script:
inline: if (ctx._source.user == "kimchy") {ctx._source.user = "not" + ctx._source.user} else {ctx.op = "noop"}
@ -96,7 +94,6 @@
update-by-query:
refresh: true
index: twitter
wait_for_completion: true
body:
script:
inline: ctx.op = "noop"
@ -119,7 +116,6 @@
catch: /Invalid fields added to ctx \[junk\]/
update-by-query:
index: twitter
wait_for_completion: true
body:
script:
inline: ctx.junk = "stuff"
@ -139,7 +135,6 @@
catch: /Modifying \[_id\] not allowed/
update-by-query:
index: twitter
wait_for_completion: true
body:
script:
inline: ctx._id = "stuff"