Skip to content

Commit bc49a4e

Browse files
committed
[API] Log exception when we cannae delete an index
1 parent 31008c3 commit bc49a4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

elasticsearch-api/api-spec-testing/test_file.rb

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

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

447449
def wipe_searchable_snapshot_indices(client)

0 commit comments

Comments
 (0)