Skip to content

Commit 67af069

Browse files
authored
[Inference API] Fix output stream ordering in InferenceActionProxy (#124225)
1 parent d3fcff3 commit 67af069

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/changelog/124225.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124225
2+
summary: "[Inference API] Fix output stream ordering in `InferenceActionProxy`"
3+
area: Machine Learning
4+
type: bug
5+
issues: []

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/InferenceActionProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public ActionRequestValidationException validate() {
105105
@Override
106106
public void writeTo(StreamOutput out) throws IOException {
107107
super.writeTo(out);
108-
out.writeString(inferenceEntityId);
109108
taskType.writeTo(out);
109+
out.writeString(inferenceEntityId);
110110
out.writeBytesReference(content);
111111
XContentHelper.writeTo(out, contentType);
112112
out.writeTimeValue(timeout);

0 commit comments

Comments
 (0)