]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: sync with elastic search v7
authorChang Liu <liuchang0812@gmail.com>
Mon, 12 Aug 2019 09:14:07 +0000 (17:14 +0800)
committerChang Liu <liuchang0812@gmail.com>
Thu, 12 Sep 2019 06:45:46 +0000 (14:45 +0800)
commitc39761cddacbc82f70805b36e15970044c1a5d9c
tree113f57f21d6060b5d3bcc15c097568a96640e9ae
parent49addda5707f06b90746bee96b82c4d77a23951b
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>
src/rgw/rgw_sync_module_es.cc