]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: sync with elastic search v7 31027/head
authorChang Liu <liuchang0812@gmail.com>
Mon, 12 Aug 2019 09:14:07 +0000 (17:14 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 22 Oct 2019 07:55:47 +0000 (09:55 +0200)
commit732bbe291ba4f2a4df6ccf91a413917b39d3a875
tree02476b66d6f51d2afbabd69b7f303a848f0c02d3
parentada78d0e37a6911645eb24fa9e4317897f43ed7b
rgw: sync with elastic search v7

elastic search removes mapping types feature. see
https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html

to support elastic search above 7.0, es sync module includes following
changes :

1. the ElasticConfig struct addes new member "esinfo";
2. create elastic index without root type "object";
3. upload elastic document with new typeless path "/_doc/{id}";
4. add new exist error code "resource_already_exists_exception".

Fixes: https://tracker.ceph.com/issues/41227
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
(cherry picked from commit c39761cddacbc82f70805b36e15970044c1a5d9c)

Conflicts:
src/rgw/rgw_sync_module_es.cc
- svc.zone
- get_cr_registry
src/rgw/rgw_sync_module_es.cc