Spec failures in `ee/spec/lib/ee/gitlab/elastic/helper_spec.rb` | Gitlab::Elastic::Helper#create_standalone_indices
Job #957203406 failed for 925d5cb8:
Trace
Failures:
1) Gitlab::Elastic::Helper#create_standalone_indices raises an exception when there is an existing index
Failure/Error: @indices = helper.create_standalone_indices(with_alias: false)
RuntimeError:
Index under 'gitlab-test-issues-20210112-0919' already exists
# ./ee/lib/gitlab/elastic/helper.rb:107:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:103:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:103:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:103:in `create_standalone_indices'
# ./ee/spec/lib/ee/gitlab/elastic/helper_spec.rb:100:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:326:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:317:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:313:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:313:in `block (2 levels) in <top (required)>'
2) Gitlab::Elastic::Helper#delete_standalone_indices behaves like deletes all standalone indices Issue removes a standalone index
Failure/Error: helper.create_standalone_indices
RuntimeError:
Index under 'gitlab-test-issues-20210112-0919' already exists
Shared Example Group: "deletes all standalone indices" called from ./ee/spec/lib/ee/gitlab/elastic/helper_spec.rb:113
# ./ee/lib/gitlab/elastic/helper.rb:107:in `block in create_standalone_indices'
# ./ee/lib/gitlab/elastic/helper.rb:103:in `each'
# ./ee/lib/gitlab/elastic/helper.rb:103:in `each_with_object'
# ./ee/lib/gitlab/elastic/helper.rb:103:in `create_standalone_indices'
# ./ee/spec/lib/ee/gitlab/elastic/helper_spec.rb:108:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:326:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:317:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:313:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:313:in `block (2 levels) in <top (required)>'
Finished in 14 minutes 36 seconds (files took 53.2 seconds to load)