-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix record skipping when querying paginated data across shards (#3061)
* Add reproducer for pagination skipping bug Signed-off-by: Simeon Widdis <[email protected]> * Fix the bug Signed-off-by: Simeon Widdis <[email protected]> * Add additional sorts to other locations Signed-off-by: Simeon Widdis <[email protected]> * Use constant for ID field Signed-off-by: Simeon Widdis <[email protected]> * Fix broken cursor test Signed-off-by: Simeon Widdis <[email protected]> * Apply spotless Signed-off-by: Simeon Widdis <[email protected]> --------- Signed-off-by: Simeon Widdis <[email protected]>
- Loading branch information
Showing
9 changed files
with
166 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
integ-test/src/test/resources/indexDefinitions/calcs_with_shards_index_mappings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"mappings" : { | ||
"properties" : { | ||
"key" : { | ||
"type" : "keyword" | ||
}, | ||
"num0" : { | ||
"type" : "double" | ||
}, | ||
"num1" : { | ||
"type" : "double" | ||
}, | ||
"num2" : { | ||
"type" : "double" | ||
}, | ||
"num3" : { | ||
"type" : "double" | ||
}, | ||
"num4" : { | ||
"type" : "double" | ||
}, | ||
"str0" : { | ||
"type" : "keyword" | ||
}, | ||
"str1" : { | ||
"type" : "keyword" | ||
}, | ||
"str2" : { | ||
"type" : "keyword" | ||
}, | ||
"str3" : { | ||
"type" : "keyword" | ||
}, | ||
"int0" : { | ||
"type" : "integer" | ||
}, | ||
"int1" : { | ||
"type" : "integer" | ||
}, | ||
"int2" : { | ||
"type" : "integer" | ||
}, | ||
"int3" : { | ||
"type" : "integer" | ||
}, | ||
"bool0" : { | ||
"type" : "boolean" | ||
}, | ||
"bool1" : { | ||
"type" : "boolean" | ||
}, | ||
"bool2" : { | ||
"type" : "boolean" | ||
}, | ||
"bool3" : { | ||
"type" : "boolean" | ||
}, | ||
"date0" : { | ||
"type" : "date", | ||
"format": "year_month_day" | ||
}, | ||
"date1" : { | ||
"type" : "date", | ||
"format": "year_month_day" | ||
}, | ||
"date2" : { | ||
"type" : "date", | ||
"format": "year_month_day" | ||
}, | ||
"date3" : { | ||
"type" : "date", | ||
"format": "year_month_day" | ||
}, | ||
"time0" : { | ||
"type" : "date", | ||
"format": "date_time_no_millis" | ||
}, | ||
"time1" : { | ||
"type" : "date", | ||
"format": "hour_minute_second" | ||
}, | ||
"datetime0" : { | ||
"type" : "date", | ||
"format": "date_time_no_millis" | ||
}, | ||
"datetime1" : { | ||
"type" : "date" | ||
}, | ||
"zzz" : { | ||
"type" : "keyword" | ||
} | ||
} | ||
}, | ||
"settings": { | ||
"index": { | ||
"number_of_shards": 4 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters