mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Fixed serialisation bug for multi percolate request and response classes.
This bug manifests when running with transport client.
This commit is contained in:
parent
74e8d299d6
commit
7c032f6af6
@ -320,7 +320,7 @@ public class MultiPercolateRequest extends ActionRequest<MultiPercolateRequest>
|
||||
@Override
|
||||
public void writeTo(StreamOutput out) throws IOException {
|
||||
super.writeTo(out);
|
||||
out.writeStringArray(indices);
|
||||
out.writeStringArrayNullable(indices);
|
||||
out.writeOptionalString(documentType);
|
||||
out.writeByte(ignoreIndices.id());
|
||||
out.writeVInt(requests.size());
|
||||
|
@ -144,8 +144,10 @@ public class MultiPercolateResponse extends ActionResponse implements Iterable<M
|
||||
@Override
|
||||
public void writeTo(StreamOutput out) throws IOException {
|
||||
if (response != null) {
|
||||
out.writeBoolean(true);
|
||||
response.writeTo(out);
|
||||
} else {
|
||||
out.writeBoolean(false);
|
||||
out.writeString(errorMessage);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user