-
Notifications
You must be signed in to change notification settings - Fork 276
Closed
Labels
Area: SpecificationRelated to the API spec used to generate client codeRelated to the API spec used to generate client codeCategory: BugSomething isn't workingSomething isn't working
Description
Java API client version
8.15.5
Java version
1.8.0_381
Elasticsearch Version
8.15.5
Problem description
The ExecutePolicyResponse returned by executePolicy has a null taskId when using ?wait_for_completion=false (see issues 376 and 744).
The client correctly receives the taskid from the server ("task" property) in performRequest() but fails to deserialize it in decodeTransportResponse. The property is seen as an "unknown" property.
The cause could be located in ExecutePolicyResponse : the JsonpDeserializer uses "task_id" and not "task".
public static final JsonpDeserializer<ExecutePolicyResponse> _DESERIALIZER = ObjectBuilderDeserializer
.lazy(Builder::new, ExecutePolicyResponse::setupExecutePolicyResponseDeserializer);
protected static void setupExecutePolicyResponseDeserializer(ObjectDeserializer<ExecutePolicyResponse.Builder> op) {
op.add(Builder::status, ExecuteEnrichPolicyStatus._DESERIALIZER, "status");
op.add(Builder::taskId, JsonpDeserializer.stringDeserializer(), "task_id");
}
Metadata
Metadata
Assignees
Labels
Area: SpecificationRelated to the API spec used to generate client codeRelated to the API spec used to generate client codeCategory: BugSomething isn't workingSomething isn't working