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 Reporting API Integration Tests.x-pack/test/reporting_api_integration/reporting/usage·ts - Reporting APIs reporting usage "before all" hook in "reporting usage" #72100

Closed
kibanamachine opened this issue Jul 16, 2020 · 3 comments
Labels
failed-test A test failure on a tracked branch, potentially flaky-test

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

{ Error: [invalid_alias_name_exception] Invalid alias name [.kibana], an index exists with the same name as the alias, with { index_uuid="g8hnLncsSZWXLv6jqARTFA" & index=".kibana" }
    at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
    at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
    at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
    at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4929:19)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  status: 400,
  displayName: 'BadRequest',
  message:
   '[invalid_alias_name_exception] Invalid alias name [.kibana], an index exists with the same name as the alias, with { index_uuid="g8hnLncsSZWXLv6jqARTFA" & index=".kibana" }',
  path: '/.kibana_1',
  query: { include_type_name: false },
  body:
   { error:
      { root_cause: [Array],
        type: 'invalid_alias_name_exception',
        reason:
         'Invalid alias name [.kibana], an index exists with the same name as the alias',
        index_uuid: 'g8hnLncsSZWXLv6jqARTFA',
        index: '.kibana' },
     status: 400 },
  statusCode: 400,
  response:
   '{"error":{"root_cause":[{"type":"invalid_alias_name_exception","reason":"Invalid alias name [.kibana], an index exists with the same name as the alias","index_uuid":"g8hnLncsSZWXLv6jqARTFA","index":".kibana"}],"type":"invalid_alias_name_exception","reason":"Invalid alias name [.kibana], an index exists with the same name as the alias","index_uuid":"g8hnLncsSZWXLv6jqARTFA","index":".kibana"},"status":400}',
  toString: [Function],
  toJSON: [Function] }

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Jul 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-test-triage (failed-test)

@spalger
Copy link
Contributor

spalger commented Jul 16, 2020

Looks like this is an instance of the issue that #71910 was intended to fix. Looking at the logs it appears that the .kibana index is being created by the bulk API, which wouldn't be cleared out by the existing "delete kibana index" logic as it targets the .kibana_n indexes. Creating a raw .kibana index indicates that the docs would be lost if we extended that method to clear out the .kibana index too, which would break tests in other ways.

I'm going to spend some time today making sure that index records are handled completely before doc records are handled... Not sure if this is a new or ancient issue... Hoping it doesn't require too much reworking of this ancient code.

@spalger
Copy link
Contributor

spalger commented Jul 20, 2020

Should be fixed by the combination of #71910 and #72354

@spalger spalger closed this as completed Jul 20, 2020
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
Projects
None yet
Development

No branches or pull requests

3 participants