OpenSearch/x-pack/plugin/watcher
Yannick Welsch 9638ca20b0 Allow dropping documents with auto-generated ID (#46773)
When using auto-generated IDs + the ingest drop processor (which looks to be used by filebeat
as well) + coordinating nodes that do not have the ingest processor functionality, this can lead
to a NullPointerException.

The issue is that markCurrentItemAsDropped() is creating an UpdateResponse with no id when
the request contains auto-generated IDs. The response serialization is lenient for our
REST/XContent format (i.e. we will send "id" : null) but the internal transport format (used for
communication between nodes) assumes for this field to be non-null, which means that it can't
be serialized between nodes. Bulk requests with ingest functionality are processed on the
coordinating node if the node has the ingest capability, and only otherwise sent to a different
node. This means that, in order to reproduce this, one needs two nodes, with the coordinating
node not having the ingest functionality.

Closes #46678
2019-09-19 16:46:33 +02:00
..
licenses Replace javax activation with jakarta activation (#40247) 2019-04-04 10:28:24 +02:00
src Allow dropping documents with auto-generated ID (#46773) 2019-09-19 16:46:33 +02:00
build.gradle Watcher add email warning if CSV attachment contains formulas (#44460) (#45557) 2019-08-26 08:35:33 -05:00