logstash-plugins / logstash-output-elasticsearch

https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html
Apache License 2.0
219 stars 305 forks source link

New management of `version` and `version_type` corrupt datastreams processing #1160

Closed andsel closed 10 months ago

andsel commented 10 months ago

Build scan: https://buildkite.com/elastic/logstash-serverless-integration-testing/builds/195

Repro line: To reproduce this follow the steps described in "How to test this PR locally" of PR #1155

Reproduces locally?: yes

Applicable branches: main

Failure history:

Failure excerpt:

[2023-11-20T14:56:18,282][ERROR][logstash.outputs.elasticsearch][main][baa2932b460534470bcad648824fb6b847f062098ce5a136db7a48475e38f60b] Encountered a retryable error (will retry with exponential backoff) {:code=>400, :url=>"https://<an instance>.elastic-cloud.com:443/_bulk?filter_path=errors,items.*.error,items.*.status", :content_length=>5480, :body=>"{\"error\":{\"root_cause\":[{\"type\":\"action_request_validation_exception\",\"reason\":\"Validation Failed: 1: create operations do not support explicit versions. use index instead;\"}],\"type\":\"action_request_validation_exception\",\"reason\":\"Validation Failed: 1: create operations do not support explicit versions. use index instead;\"},\"status\":400}"}