Skip to content

Commit

Permalink
Use flush instead of flushed_synced
Browse files Browse the repository at this point in the history
  • Loading branch information
alantang888 committed Jan 30, 2024
1 parent 6672ed5 commit 0fa4203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion curator/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def do_action(self):
)
if not self.skip_flush:
try:
self.client.indices.flush_synced(index=lst_as_csv, ignore_unavailable=True)
self.client.indices.flush(index=lst_as_csv, ignore_unavailable=True, force=True)
except ConflictError as err:
if not self.ignore_sync_failures:
raise ConflictError(err.status_code, err.error, err.info)
Expand Down
6 changes: 1 addition & 5 deletions test/unit/testvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,7 @@
}
verified_nodes = {'nodes': {'nodeid1': {'name': 'node1'}, 'nodeid2': {'name': 'node2'}}}
synced_pass = {
"_shards":{"total":1,"successful":1,"failed":0},
"index_name":{
"total":1,"successful":1,"failed":0,
"failures":[],
}
"_shards":{"total":1,"successful":1,"failed":0}
}
synced_fail = {
"_shards":{"total":1,"successful":0,"failed":1},
Expand Down

0 comments on commit 0fa4203

Please sign in to comment.