OpenSearch/x-pack/plugin
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
..
analytics Replace the SearchContext with QueryShardContext when building aggregator factories (#46527) 2019-09-11 16:43:30 +02:00
ccr Make Snapshot Logic Write Metadata after Segments (#45689) (#46764) 2019-09-17 13:09:39 +02:00
core [7.x][ML] Parse and index data frame analytics state (#46804) (#46820) 2019-09-18 20:37:40 +03:00
deprecation Add deprecation check for pidfile setting (#45939) 2019-08-24 17:19:20 -04:00
frozen-indices Ignore translog retention policy if soft-deletes enabled (#45473) 2019-08-22 16:40:06 -04:00
graph Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
ilm Add node setting for disabling SLM (#46794) (#46796) 2019-09-17 17:39:41 -06:00
logstash Remove description from xpack feature sets (#43065) 2019-06-11 09:22:58 -07:00
mapper-flattened Add support for 'flattened object' fields. (#43762) 2019-07-01 12:08:50 +03:00
ml Allow dropping documents with auto-generated ID (#46773) 2019-09-19 16:46:33 +02:00
monitoring Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
rollup [7.x Backport] Refactor AllocatedPersistentTask#init(), move rollup ctor logic (#46406) 2019-09-11 17:00:28 -04:00
search-business-rules Test fix for PinnedQueryBuilderIT (#46187) (#46227) 2019-09-02 13:31:22 +01:00
security Allow dropping documents with auto-generated ID (#46773) 2019-09-19 16:46:33 +02:00
spatial reset queryGeometry in ShapeQueryTests (#45974) (#46251) 2019-09-03 10:24:46 +02:00
sql Add resolution rule to allow resolving all deps (#46768) 2019-09-18 11:09:43 +03:00
src/test [7.x] [ML][Transforms] remove `force` flag from _start (#46414) (#46748) 2019-09-18 10:06:05 -04:00
transform [7.x] [ML][Transforms] remove `force` flag from _start (#46414) (#46748) 2019-09-18 10:06:05 -04:00
vectors First round of optimizations for vector functions. (#46294) 2019-09-04 14:45:57 -07:00
voting-only-node Close nodes properly in Coordinator tests (#44967) 2019-07-30 11:47:36 +01:00
watcher Allow dropping documents with auto-generated ID (#46773) 2019-09-19 16:46:33 +02:00
build.gradle Skip feature aware check on JDK 14 (#45928) 2019-08-23 17:38:15 -04:00