Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test: X-Pack Saved Object API Integration Tests -- spaces_only.x-pack/test/saved_object_api_integration/spaces_only/apis/bulk_create·ts - saved objects spaces only enabled _bulk_create within the default space with overwrite enabled "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id,dashboard/new-dashboard-id,sharedtype/new-sharedtype-id,globaltype/new-globaltype-id,isolatedtype/new-other-space-id,sharecapabletype/new-other-space-id,sharedtype/new-each-space-id,sharedtype/new-all-spaces-id] and bad request [hiddentype/any,isolatedtype/new-other-space-id,sharecapabletype/new-other-space-id] and conflict [sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1]" #121050

Closed
kibanamachine opened this issue Dec 12, 2021 · 4 comments
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Dec 12, 2021

A test failed on a tracked branch

ResponseError: invalid_alias_name_exception: [invalid_alias_name_exception] Reason: Invalid alias name [.kibana_7.16.1]: an index or data stream exists with the same name as the alias
    at onBody (/opt/local-ssd/buildkite/builds/kb-n2-4-34fea3ca2314114b/elastic/kibana-hourly/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:367:23)
    at IncomingMessage.onEnd (/opt/local-ssd/buildkite/builds/kb-n2-4-34fea3ca2314114b/elastic/kibana-hourly/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:291:11)
    at IncomingMessage.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  meta: {
    body: { error: [Object], status: 400 },
    statusCode: 400,
    headers: {
      'x-elastic-product': 'Elasticsearch',
      warning: '299 Elasticsearch-7.16.1-SNAPSHOT-5b38441b16b1ebb16a27c107a4c3865776e20c53 "[types removal] Using include_type_name in create index requests is deprecated. The parameter will be removed in the next major version."',
      'content-type': 'application/json; charset=UTF-8',
      'content-length': '339'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    }
  }
}

First failure: CI Build - 7.16

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Dec 12, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 12, 2021
@mistic mistic added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Dec 13, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 13, 2021
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 7.16

@afharo
Copy link
Member

afharo commented Jun 27, 2022

Closing because it hasn't happened in a long while and we cannot see the build logs from those old failures.

Probably related to #105758.

@afharo afharo closed this as completed Jun 27, 2022
@rudolf
Copy link
Contributor

rudolf commented Jun 30, 2022

The error Reason: Invalid alias name [.kibana_7.16.2]: an index or data stream exists with the same name as the alias originates from the before hook where esArchiver loads the archive. The deprecation header for include_type_name makes me quite sure this error comes from

The code here tries to delete any existing kibana indices and then recreate them. When the delete operation doesn't complete fast enough, the create fails and the code here tries up to 3 times. But because there's no delay in between retries it's possible that we hit this edge-case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

5 participants