Skip to content
Snippets Groups Projects
Commit adb02958 authored by Serhat Demircan's avatar Serhat Demircan
Browse files

Retry perform a synced flush task while upgrading elasticsearch

The synced flush fails due to concurrent indexing operations.
The HTTP status code in that case will be 409 CONFLICT. We can
retry this task until returns success.

Change-Id: I57f9a009b12715eed8dfcf829a71f418d2ce437b
parent 47a2c5a8
No related merge requests found
......@@ -21,6 +21,10 @@
body_format: json
delegate_to: "{{ groups['elasticsearch'][0] }}"
run_once: true
retries: 10
delay: 5
register: result
until: ('status' in result) and result.status == 200
# Stop all elasticsearch containers before applying configuration to ensure
# handlers are triggered to restart them.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment