d74de5acc8
Previously, when the RequestContext could not be located a FieldSubsetReader was returned that only allowed meta fields to be read. This was done for safety in case there was an API missed so we did not leak data. However, this causes issues because some requests in elasticsearch execute on a different thread than the one with the RequestContext so we effectively lose this context and prevent access to the fields in the document. This is especially problematic with update requests, because that means that fields that aren't included in the updated document will be lost. This commit removes the wrapping of the readers in this case and adds tests for bulk updates. Closes elastic/elasticsearch#938 Original commit: elastic/x-pack-elasticsearch@74c8059da0 |
||
---|---|---|
buildSrc | ||
marvel | ||
qa | ||
shield | ||
watcher | ||
x-dev-tools | ||
.dir-locals.el | ||
.projectile | ||
LICENSE.txt | ||
README.asciidoc | ||
build.gradle | ||
settings.gradle |
README.asciidoc
= Elasticsearch X Plugins A set of Elastic's commercial plugins: - License - Shield - Watcher - Marvel = Testing with Elasticsearch Sometimes it is useful to use your local elasticsearch checkout with x-plugins. To do this, run the following commands: cd buildSrc gradle attach --name elasticsearch --path /path/to/elasticsearch/buildSrc cd .. gradle attach --name elasticsearch --path /path/to/elasticsearch This will cause building x-plugins to reflect any changes in your elasticsearch repo. For example, if you make a change to elasticsearch core, building x-plugins will first re-build elasticsearch core, and use that when building x-plugins.