Skip to content

Commit 90a667b

Browse files
committed
[CI] Test Runner: Updates clear_datastreams
1 parent 88c298d commit 90a667b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api-spec-testing/test_file.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,12 @@ def clear_datastreams(client)
404404
datastreams['data_streams'].each do |datastream|
405405
client.xpack.indices.delete_data_stream(name: datastream['name'], expand_wildcards: 'all')
406406
end
407-
client.indices.delete_data_stream(name: '*')
407+
begin
408+
client.indices.delete_data_stream(name: '*', expand_wildcards: 'all')
409+
rescue StandardError => e
410+
LOGGER.error "Caught exception attempting to delete data streams: #{e}"
411+
client.indices.delete_data_stream(name: '*')
412+
end
408413
end
409414

410415
def clear_ml_filters(client)

0 commit comments

Comments
 (0)