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

Fix Warning When Leaving from Visualize Listing Page #89041

Merged

Conversation

ThomThomson
Copy link
Contributor

Summary

Fixes #88749 by resetting the appLeaveHandler in a cleanup function.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@ThomThomson ThomThomson added Feature:Vis Editor Visualization editor issues v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v7.12.0 labels Jan 21, 2021
@ThomThomson ThomThomson requested a review from a team January 21, 2021 22:45
@stratoula
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested it locally, bug is fixed

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts.alerting api integration security and spaces enabled Alerts legacy alerts alerts "before all" hook in "alerts"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: alerting api integration security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:03:58]           └-: Alerts
[00:03:58]             └-> "before all" hook
[00:03:58]             └-: legacy alerts
[00:03:58]               └-> "before all" hook
[00:03:58]               └-> "before all" hook
[00:03:58]                 │ debg creating space
[00:03:58]                 │ debg created space
[00:03:58]                 │ debg creating space
[00:03:59]                 │ debg created space
[00:03:59]                 │ debg creating space
[00:04:00]                 │ debg created space
[00:04:00]                 │ debg creating user no_kibana_privileges
[00:04:00]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [no_kibana_privileges]
[00:04:00]                 │ debg created user no_kibana_privileges
[00:04:00]                 │ debg creating role no_kibana_privileges
[00:04:00]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [no_kibana_privileges]
[00:04:00]                 │ debg creating user superuser
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [superuser]
[00:04:01]                 │ debg created user superuser
[00:04:01]                 │ debg creating user global_read
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [global_read]
[00:04:01]                 │ debg created user global_read
[00:04:01]                 │ debg creating role global_read_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [global_read_role]
[00:04:01]                 │ debg creating user space_1_all
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all]
[00:04:01]                 │ debg created user space_1_all
[00:04:01]                 │ debg creating role space_1_all_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_role]
[00:04:01]                 │ debg creating user space_1_all_with_restricted_fixture
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all_with_restricted_fixture]
[00:04:01]                 │ debg created user space_1_all_with_restricted_fixture
[00:04:01]                 │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_with_restricted_fixture_role]
[00:04:01]                 │ debg creating user space_1_all_alerts_none_actions
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all_alerts_none_actions]
[00:04:01]                 │ debg created user space_1_all_alerts_none_actions
[00:04:01]                 │ debg creating role space_1_all_alerts_none_actions_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_alerts_none_actions_role]
[00:04:01]               └-: alerts
[00:04:01]                 └-> "before all" hook
[00:04:01]                 └-> "before all" hook
[00:04:01]                   │ info [alerts_legacy] Loading "mappings.json"
[00:04:01]                   │ info [alerts_legacy] Loading "data.json"
[00:04:01]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_1/Mrtfu8BLQ2Cg4S6ImCjvaw] deleting index
[00:04:01]                   │ info [alerts_legacy] Deleted existing index [".kibana_1"]
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:01]                   │ info [alerts_legacy] Created index ".kibana_1"
[00:04:01]                   │ debg [alerts_legacy] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:01]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_task_manager_1/ND_SZ6c3S2On1ywFZsGKyA] deleting index
[00:04:01]                   │ info [alerts_legacy] Deleted existing index ".kibana_task_manager_1"
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_task_manager] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:04:02]                   │ info failed to create aliases [{ '.kibana_task_manager': {} }] because ES indicated an index/alias already exists, trying again
[00:04:02]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_1/3BL-BtQCSKyZCRtHobPfEA] deleting index
[00:04:02]                   │ info [alerts_legacy] Deleted existing index [".kibana_1"]
[00:04:02]                   └- ✖ fail: alerting api integration security and spaces enabled Alerts legacy alerts alerts "before all" hook in "alerts"
[00:04:02]                   │      Error: [invalid_alias_name_exception] Invalid alias name [.kibana_task_manager], an index exists with the same name as the alias, with { index_uuid="663P1OhQRDmYbF9zehwRSQ" & index=".kibana_task_manager" }
[00:04:02]                   │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:04:02]                   │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:04:02]                   │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:04:02]                   │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
[00:04:02]                   │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:04:02]                   │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:04:02]                   │ 
[00:04:02]                   │ 

Stack Trace

StatusCodeError: [invalid_alias_name_exception] Invalid alias name [.kibana_task_manager], an index exists with the same name as the alias, with { index_uuid="663P1OhQRDmYbF9zehwRSQ" & index=".kibana_task_manager" }
    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:4949:19)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  status: 400,
  displayName: 'BadRequest',
  path: '/.kibana_task_manager_1',
  query: {},
  body: {
    error: {
      root_cause: [Array],
      type: 'invalid_alias_name_exception',
      reason: 'Invalid alias name [.kibana_task_manager], an index exists with the same name as the alias',
      index_uuid: '663P1OhQRDmYbF9zehwRSQ',
      index: '.kibana_task_manager'
    },
    status: 400
  },
  statusCode: 400,
  response: '{"error":{"root_cause":[{"type":"invalid_alias_name_exception","reason":"Invalid alias name [.kibana_task_manager], an index exists with the same name as the alias","index_uuid":"663P1OhQRDmYbF9zehwRSQ","index":".kibana_task_manager"}],"type":"invalid_alias_name_exception","reason":"Invalid alias name [.kibana_task_manager], an index exists with the same name as the alias","index_uuid":"663P1OhQRDmYbF9zehwRSQ","index":".kibana_task_manager"},"status":400}',
  toString: [Function (anonymous)],
  toJSON: [Function (anonymous)]
}

X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts.alerting api integration security and spaces enabled Alerts legacy alerts alerts "after all" hook in "alerts"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: alerting api integration security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:03:58]           └-: Alerts
[00:03:58]             └-> "before all" hook
[00:03:58]             └-: legacy alerts
[00:03:58]               └-> "before all" hook
[00:03:58]               └-> "before all" hook
[00:03:58]                 │ debg creating space
[00:03:58]                 │ debg created space
[00:03:58]                 │ debg creating space
[00:03:59]                 │ debg created space
[00:03:59]                 │ debg creating space
[00:04:00]                 │ debg created space
[00:04:00]                 │ debg creating user no_kibana_privileges
[00:04:00]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [no_kibana_privileges]
[00:04:00]                 │ debg created user no_kibana_privileges
[00:04:00]                 │ debg creating role no_kibana_privileges
[00:04:00]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [no_kibana_privileges]
[00:04:00]                 │ debg creating user superuser
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [superuser]
[00:04:01]                 │ debg created user superuser
[00:04:01]                 │ debg creating user global_read
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [global_read]
[00:04:01]                 │ debg created user global_read
[00:04:01]                 │ debg creating role global_read_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [global_read_role]
[00:04:01]                 │ debg creating user space_1_all
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all]
[00:04:01]                 │ debg created user space_1_all
[00:04:01]                 │ debg creating role space_1_all_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_role]
[00:04:01]                 │ debg creating user space_1_all_with_restricted_fixture
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all_with_restricted_fixture]
[00:04:01]                 │ debg created user space_1_all_with_restricted_fixture
[00:04:01]                 │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_with_restricted_fixture_role]
[00:04:01]                 │ debg creating user space_1_all_alerts_none_actions
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all_alerts_none_actions]
[00:04:01]                 │ debg created user space_1_all_alerts_none_actions
[00:04:01]                 │ debg creating role space_1_all_alerts_none_actions_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_alerts_none_actions_role]
[00:04:01]               └-: alerts
[00:04:01]                 └-> "before all" hook
[00:04:01]                 └-> "before all" hook
[00:04:01]                   │ info [alerts_legacy] Loading "mappings.json"
[00:04:01]                   │ info [alerts_legacy] Loading "data.json"
[00:04:01]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_1/Mrtfu8BLQ2Cg4S6ImCjvaw] deleting index
[00:04:01]                   │ info [alerts_legacy] Deleted existing index [".kibana_1"]
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:01]                   │ info [alerts_legacy] Created index ".kibana_1"
[00:04:01]                   │ debg [alerts_legacy] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:01]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_task_manager_1/ND_SZ6c3S2On1ywFZsGKyA] deleting index
[00:04:01]                   │ info [alerts_legacy] Deleted existing index ".kibana_task_manager_1"
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_task_manager] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:04:02]                   │ info failed to create aliases [{ '.kibana_task_manager': {} }] because ES indicated an index/alias already exists, trying again
[00:04:02]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] [.kibana_1/3BL-BtQCSKyZCRtHobPfEA] deleting index
[00:04:02]                   │ info [alerts_legacy] Deleted existing index [".kibana_1"]
[00:04:02]                   └- ✖ fail: alerting api integration security and spaces enabled Alerts legacy alerts alerts "before all" hook in "alerts"
[00:04:02]                   │      Error: [invalid_alias_name_exception] Invalid alias name [.kibana_task_manager], an index exists with the same name as the alias, with { index_uuid="663P1OhQRDmYbF9zehwRSQ" & index=".kibana_task_manager" }
[00:04:02]                   │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:04:02]                   │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:04:02]                   │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:04:02]                   │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
[00:04:02]                   │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:04:02]                   │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:04:02]                   │ 
[00:04:02]                   │ 
[00:04:02]                   └-> "after all" hook
[00:04:02]                     └- ✖ fail: alerting api integration security and spaces enabled Alerts legacy alerts alerts "after all" hook in "alerts"
[00:04:02]                     │      Error: [index_not_found_exception] no such index [.kibana-test-authorization], with { resource.type="index_or_alias" & resource.id=".kibana-test-authorization" & index_uuid="_na_" & index=".kibana-test-authorization" }
[00:04:02]                     │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:04:02]                     │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:04:02]                     │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:04:02]                     │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
[00:04:02]                     │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:04:02]                     │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:04:02]                     │ 
[00:04:02]                     │ 

Stack Trace

StatusCodeError: [index_not_found_exception] no such index [.kibana-test-authorization], with { resource.type="index_or_alias" & resource.id=".kibana-test-authorization" & index_uuid="_na_" & index=".kibana-test-authorization" }
    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:4949:19)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  status: 404,
  displayName: 'NotFound',
  path: '/.kibana-test-authorization',
  query: {},
  body: {
    error: {
      root_cause: [Array],
      type: 'index_not_found_exception',
      reason: 'no such index [.kibana-test-authorization]',
      'resource.type': 'index_or_alias',
      'resource.id': '.kibana-test-authorization',
      index_uuid: '_na_',
      index: '.kibana-test-authorization'
    },
    status: 404
  },
  statusCode: 404,
  response: '{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [.kibana-test-authorization]","resource.type":"index_or_alias","resource.id":".kibana-test-authorization","index_uuid":"_na_","index":".kibana-test-authorization"}],"type":"index_not_found_exception","reason":"no such index [.kibana-test-authorization]","resource.type":"index_or_alias","resource.id":".kibana-test-authorization","index_uuid":"_na_","index":".kibana-test-authorization"},"status":404}',
  toString: [Function (anonymous)],
  toJSON: [Function (anonymous)]
}

X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/index·ts.alerting api integration security and spaces enabled Alerts legacy alerts "after all" hook in "legacy alerts"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: alerting api integration security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:03:58]           └-: Alerts
[00:03:58]             └-> "before all" hook
[00:03:58]             └-: legacy alerts
[00:03:58]               └-> "before all" hook
[00:03:58]               └-> "before all" hook
[00:03:58]                 │ debg creating space
[00:03:58]                 │ debg created space
[00:03:58]                 │ debg creating space
[00:03:59]                 │ debg created space
[00:03:59]                 │ debg creating space
[00:04:00]                 │ debg created space
[00:04:00]                 │ debg creating user no_kibana_privileges
[00:04:00]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [no_kibana_privileges]
[00:04:00]                 │ debg created user no_kibana_privileges
[00:04:00]                 │ debg creating role no_kibana_privileges
[00:04:00]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [no_kibana_privileges]
[00:04:00]                 │ debg creating user superuser
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [superuser]
[00:04:01]                 │ debg created user superuser
[00:04:01]                 │ debg creating user global_read
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [global_read]
[00:04:01]                 │ debg created user global_read
[00:04:01]                 │ debg creating role global_read_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [global_read_role]
[00:04:01]                 │ debg creating user space_1_all
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all]
[00:04:01]                 │ debg created user space_1_all
[00:04:01]                 │ debg creating role space_1_all_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_role]
[00:04:01]                 │ debg creating user space_1_all_with_restricted_fixture
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all_with_restricted_fixture]
[00:04:01]                 │ debg created user space_1_all_with_restricted_fixture
[00:04:01]                 │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_with_restricted_fixture_role]
[00:04:01]                 │ debg creating user space_1_all_alerts_none_actions
[00:04:01]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added user [space_1_all_alerts_none_actions]
[00:04:01]                 │ debg created user space_1_all_alerts_none_actions
[00:04:01]                 │ debg creating role space_1_all_alerts_none_actions_role
[00:04:01]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1611569571381874384] added role [space_1_all_alerts_none_actions_role]
[00:04:02]                   └-> "after all" hook
[00:04:02]                     │ debg deleting user no_kibana_privileges
[00:04:02]                     │ debg deleted user no_kibana_privileges
[00:04:02]                     │ debg deleting role no_kibana_privileges
[00:04:02]                     │ debg deleting user superuser
[00:04:02]                     │ debg deleted user superuser
[00:04:02]                     │ debg deleting user global_read
[00:04:02]                     │ debg deleted user global_read
[00:04:02]                     │ debg deleting role global_read_role
[00:04:02]                     │ debg deleting user space_1_all
[00:04:02]                     │ debg deleted user space_1_all
[00:04:02]                     │ debg deleting role space_1_all_role
[00:04:02]                     │ debg deleting user space_1_all_with_restricted_fixture
[00:04:02]                     │ debg deleted user space_1_all_with_restricted_fixture
[00:04:02]                     │ debg deleting role space_1_all_with_restricted_fixture_role
[00:04:02]                     │ debg deleting user space_1_all_alerts_none_actions
[00:04:02]                     │ debg deleted user space_1_all_alerts_none_actions
[00:04:02]                     │ debg deleting role space_1_all_alerts_none_actions_role
[00:04:02]                     │ info [empty_kibana] Unloading indices from "mappings.json"
[00:04:02]                     └- ✖ fail: alerting api integration security and spaces enabled Alerts legacy alerts "after all" hook in "legacy alerts"
[00:04:02]                     │      Error: [index_not_found_exception] no such index [.kibana], with { resource.type="index_or_alias" & resource.id=".kibana" & index_uuid="_na_" & index=".kibana" }
[00:04:02]                     │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:04:02]                     │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:04:02]                     │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:04:02]                     │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
[00:04:02]                     │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:04:02]                     │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:04:02]                     │ 
[00:04:02]                     │ 

Stack Trace

StatusCodeError: [index_not_found_exception] no such index [.kibana], with { resource.type="index_or_alias" & resource.id=".kibana" & index_uuid="_na_" & 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:4949:19)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  status: 404,
  displayName: 'NotFound',
  path: '/.kibana/_delete_by_query',
  query: {},
  body: {
    error: {
      root_cause: [Array],
      type: 'index_not_found_exception',
      reason: 'no such index [.kibana]',
      'resource.type': 'index_or_alias',
      'resource.id': '.kibana',
      index_uuid: '_na_',
      index: '.kibana'
    },
    status: 404
  },
  statusCode: 404,
  response: '{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [.kibana]","resource.type":"index_or_alias","resource.id":".kibana","index_uuid":"_na_","index":".kibana"}],"type":"index_not_found_exception","reason":"no such index [.kibana]","resource.type":"index_or_alias","resource.id":".kibana","index_uuid":"_na_","index":".kibana"},"status":404}',
  toString: [Function (anonymous)],
  toJSON: [Function (anonymous)]
}

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visualize 132.3KB 132.4KB +51.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Vis Editor Visualization editor issues release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leave Visualize editor with unsaved changes warning pops up on visualize listing table
3 participants