Skip to content

Commit b97df82

Browse files
committed
[API] Log exception when we cannae delete an index
1 parent dc93fed commit b97df82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api-spec-testing/test_file.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ def clear_ml_filters(client)
441441

442442
def clear_indices(client)
443443
client.indices.delete(index: '*,-.ds-ilm-history-*', expand_wildcards: 'open,closed,hidden', ignore: 404)
444+
rescue Elasticsearch::Transport::Transport::Errors::BadRequest => e
445+
LOGGER.info "Exception trying to delete index #{e}"
444446
end
445447

446448
def wipe_searchable_snapshot_indices(client)

0 commit comments

Comments
 (0)