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

[ES Snapshots Failure] Endpoint tests unable to create data stream from ES archive #70535

Closed
spalger opened this issue Jul 1, 2020 · 3 comments
Assignees
Labels
failed-es-promotion needs-team Issues missing a team label

Comments

@spalger
Copy link
Contributor

spalger commented Jul 1, 2020

A change went into ES that disallowed users with access to a data stream permission to edit the underlying indices powering that data stream. Until we add full support for data-streams to es archiver (#69061) ES is working on a fix to restore this capability elastic/elasticsearch#58381

Endpoint plugin test metadata api when ingest manager is not initialized "before all" hook for "metadata api should not return results"

Error:

{ Error: [illegal_argument_exception] The provided expression [metrics-endpoint.metadata-default] matches a data stream, specify the corresponding concrete indices instead.
    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/elasticsearch/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:
   '[illegal_argument_exception] The provided expression [metrics-endpoint.metadata-default] matches a data stream, specify the corresponding concrete indices instead.',
  path: '/_bulk',
  query: {},
  body:
   { error:
      { root_cause: [Array],
        type: 'illegal_argument_exception',
        reason:
         'The provided expression [metrics-endpoint.metadata-default] matches a data stream, specify the corresponding concrete indices instead.' },
     status: 400 },
  statusCode: 400,
  response:
   '{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The provided expression [metrics-endpoint.metadata-default] matches a data stream, specify the corresponding concrete indices instead."}],"type":"illegal_argument_exception","reason":"The provided expression [metrics-endpoint.metadata-default] matches a data stream, specify the corresponding concrete indices instead."},"status":400}',
  toString: [Function],
  toJSON: [Function] }
@jonathan-buttner
Copy link
Contributor

This is strange 🤔 . So this test is actually testing that a failure should occur when the metrics-endpoint.metadata-default data stream is not created. The test intentionally does not have the Ingest Manager perform the setup that would normally install the data stream that is causing the failure here.

Does each test directory in kibana get run in an isolated environment? With this test directory get run with a completely clean ES environment or does it rely on the previous tests cleaning up the ES state after they run?

@spalger
Copy link
Contributor Author

spalger commented Jul 2, 2020

Each FTR config file gets a new instance of ES and Kibana

@jonathan-buttner
Copy link
Contributor

Closing this as it is no longer relevant. The tests have since been removed from Kibana.

@botelastic botelastic bot added the needs-team Issues missing a team label label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-es-promotion needs-team Issues missing a team label
Projects
None yet
Development

No branches or pull requests

3 participants