Skip to content

ExecutePolicyResponse has requireNonNull for 'status' but is not returned by ES when wait_for_completion=false #376

Closed
@mjmbischoff

Description

@mjmbischoff

Java API client version

8.3.3

Java version

18

Elasticsearch Version

7.17, 8.3.3

Problem description

ExecutePolicyResponse describes status as a required field but if ?wait_for_completion=false is used it is not returned.
Additionally task is returned and not taskId which means this is also not available even when ApiTypeHelper#DANGEROUS_disableRequiredPropertiesCheck(false) is used.

without wait for ?wait_for_completion=false

{
  "status": {
    "phase": "COMPLETE"
  }
}

with ?wait_for_completion=false

{
  "task": "XbmXqhlgRBqy_4Yx6xPKqw:1854616"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions