kiorky / db_smart_backup

Another database(db) smart backup tool (mysql/postgresql/slapd/mongo/es/redis)
http://www.makina-corpus.com
Other
28 stars 7 forks source link

Error on ES 5.x #13

Closed Phygon closed 4 years ago

Phygon commented 6 years ago

With ElasticSearch 5.x, the backup fails, because the parameter "wait for completion" is only valid for creating or restoring a snapshot. When using it with -XGET or -XDELETE, the following error is shown:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/_snapshot/dsb___GLOBAL__/dump] contains unrecognized parameter: [wait_for_completion]"}],"type":"illegal_argument_exception","reason":"request [/_snapshot/dsb___GLOBAL__/dump] contains unrecognized parameter: [wait_for_completion]"},"status":400}