Please sign in to comment.
Publish ObjectMappers once the entire document has been parsed.
If we publish the object mappers before we updated the actual DocumentFieldMappers concurrently indexing documents can suddenly use default analysis chains since they skip application of dynamic template or dynamic mappers in general since if there is a race condition ObjectMappers are only build once. Closes elastic#3544
- Loading branch information...
Showing with 336 additions and 149 deletions.
- +4 −0 src/main/java/org/elasticsearch/index/mapper/DocumentMapper.java
- +209 −146 src/main/java/org/elasticsearch/index/mapper/object/ObjectMapper.java
- +33 −3 src/test/java/org/elasticsearch/test/integration/AbstractSharedClusterTest.java
- +90 −0 src/test/java/org/elasticsearch/test/integration/indices/mapping/ConcurrentDynamicTemplateTests.java
Oops, something went wrong.