Add checks for field collapse test failure (#54831)
There were some failures on 7.x of field collapse tests, where total hits count was less then expected. This adds an additional test to check total hits count before field collapse queries to understand if the problem is with field collapsing or with simply that writes have not been finished yet Relates to #52416
This commit is contained in:
parent
b3d5300968
commit
0013dd4528
|
@ -56,6 +56,11 @@ setup:
|
||||||
---
|
---
|
||||||
"field collapsing":
|
"field collapsing":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
count:
|
||||||
|
index: test
|
||||||
|
- match: {count: 6}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
rest_total_hits_as_int: true
|
rest_total_hits_as_int: true
|
||||||
|
@ -88,6 +93,11 @@ setup:
|
||||||
---
|
---
|
||||||
"field collapsing and from":
|
"field collapsing and from":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
count:
|
||||||
|
index: test
|
||||||
|
- match: {count: 6}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
rest_total_hits_as_int: true
|
rest_total_hits_as_int: true
|
||||||
|
@ -109,6 +119,11 @@ setup:
|
||||||
---
|
---
|
||||||
"field collapsing and inner_hits":
|
"field collapsing and inner_hits":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
count:
|
||||||
|
index: test
|
||||||
|
- match: {count: 6}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
rest_total_hits_as_int: true
|
rest_total_hits_as_int: true
|
||||||
|
@ -149,6 +164,11 @@ setup:
|
||||||
---
|
---
|
||||||
"field collapsing, inner_hits and maxConcurrentGroupRequests":
|
"field collapsing, inner_hits and maxConcurrentGroupRequests":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
count:
|
||||||
|
index: test
|
||||||
|
- match: {count: 6}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
rest_total_hits_as_int: true
|
rest_total_hits_as_int: true
|
||||||
|
@ -233,6 +253,11 @@ setup:
|
||||||
---
|
---
|
||||||
"no hits and inner_hits":
|
"no hits and inner_hits":
|
||||||
|
|
||||||
|
- do:
|
||||||
|
count:
|
||||||
|
index: test
|
||||||
|
- match: {count: 6}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
rest_total_hits_as_int: true
|
rest_total_hits_as_int: true
|
||||||
|
@ -265,6 +290,10 @@ setup:
|
||||||
|
|
||||||
---
|
---
|
||||||
"field collapsing and multiple inner_hits":
|
"field collapsing and multiple inner_hits":
|
||||||
|
- do:
|
||||||
|
count:
|
||||||
|
index: test
|
||||||
|
- match: {count: 6}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
|
@ -323,6 +352,11 @@ setup:
|
||||||
version: " - 6.1.0"
|
version: " - 6.1.0"
|
||||||
reason: "bug fixed in 6.1.1"
|
reason: "bug fixed in 6.1.1"
|
||||||
|
|
||||||
|
- do:
|
||||||
|
count:
|
||||||
|
index: test
|
||||||
|
- match: {count: 6}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search:
|
search:
|
||||||
rest_total_hits_as_int: true
|
rest_total_hits_as_int: true
|
||||||
|
|
Loading…
Reference in New Issue