Translog recovery can fail due to mappings not present on recovery target #11281
Labels
blocker
>bug
:Distributed/Recovery
Anything around constructing a new shard, either from a local or a remote source.
:Search/Mapping
Index mappings, including merging and defining field types
v2.0.0-beta1
There is a small window where a type or a field can not be published to the the replica due to a synced mapping update but we are already sending a document of that type to the replica during translog recovery. This is basically the same problem as we have with normal indexing where the first document introducing the type blocks until the mapping update is published but subsequent documents don't introduce the new mapping since the node receiving it already got the update. The window is small but we hit it once in tests today:
http://build-us-00.elastic.co/job/es_core_master_centos/4808/consoleFull
resulting in this:
somehow we also need to wait for a clusterstate update here during translog recovery.
The text was updated successfully, but these errors were encountered: