mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
add handling a failure of malformed scroll id, and throw back the scroll id itself for simpler debugging
This commit is contained in:
parent
ca97e19cde
commit
23a35a0809
@ -127,6 +127,9 @@ public abstract class TransportSearchHelper {
|
||||
for (int i = 0; i < contextSize; i++) {
|
||||
String element = elements[index++];
|
||||
int sep = element.indexOf(':');
|
||||
if (sep == -1) {
|
||||
throw new ElasticSearchIllegalArgumentException("Malformed scrollId [" + scrollId + "]");
|
||||
}
|
||||
context[i] = new Tuple<String, Long>(element.substring(sep + 1), Long.parseLong(element.substring(0, sep)));
|
||||
}
|
||||
Map<String, String> attributes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user