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:
Mayya Sharipova 2020-04-06 17:14:17 -04:00 committed by GitHub
parent b3d5300968
commit 0013dd4528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -56,6 +56,11 @@ setup:
---
"field collapsing":
- do:
count:
index: test
- match: {count: 6}
- do:
search:
rest_total_hits_as_int: true
@ -88,6 +93,11 @@ setup:
---
"field collapsing and from":
- do:
count:
index: test
- match: {count: 6}
- do:
search:
rest_total_hits_as_int: true
@ -109,6 +119,11 @@ setup:
---
"field collapsing and inner_hits":
- do:
count:
index: test
- match: {count: 6}
- do:
search:
rest_total_hits_as_int: true
@ -149,6 +164,11 @@ setup:
---
"field collapsing, inner_hits and maxConcurrentGroupRequests":
- do:
count:
index: test
- match: {count: 6}
- do:
search:
rest_total_hits_as_int: true
@ -233,6 +253,11 @@ setup:
---
"no hits and inner_hits":
- do:
count:
index: test
- match: {count: 6}
- do:
search:
rest_total_hits_as_int: true
@ -265,6 +290,10 @@ setup:
---
"field collapsing and multiple inner_hits":
- do:
count:
index: test
- match: {count: 6}
- do:
search:
@ -323,6 +352,11 @@ setup:
version: " - 6.1.0"
reason: "bug fixed in 6.1.1"
- do:
count:
index: test
- match: {count: 6}
- do:
search:
rest_total_hits_as_int: true