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

[Visualize] Remove global state in visualize #58352

Merged

Conversation

sulemanof
Copy link
Contributor

Summary

Remove usage of Global State in Visualize, use syncAppFilters & syncQuery instead.

Fixes #57811

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@sulemanof
Copy link
Contributor Author

@elasticmachine merge upstream

@sulemanof sulemanof marked this pull request as ready for review February 25, 2020 08:45
@sulemanof sulemanof requested a review from a team February 25, 2020 08:45
@sulemanof sulemanof added Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.7.0 v8.0.0 labels Feb 25, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

I'm not sure if this is related to this PR, but while testing I saw that the filter entries of the query sent to ES contain duplicates, so there a 2 match_phrase entries for Zürich
Bildschirmfoto 2020-02-26 um 09 26 44

another potential regression:

  1. select a saved search
    Bildschirmfoto 2020-02-26 um 09 45 43
  2. navigate back using browser's back button
  3. saved search is still selected
    Bildschirmfoto 2020-02-26 um 09 46 01

@kertal kertal self-requested a review February 26, 2020 08:47
…l_state_visualize

# Conflicts:
#	src/legacy/core_plugins/kibana/public/visualize/legacy_imports.ts
#	src/legacy/core_plugins/kibana/public/visualize/np_ready/application.ts
…anof/kibana into shim/remove_global_state_visualize
@sulemanof
Copy link
Contributor Author

Hey @kertal !
Thanks for your finding! It proves again that we need to test NP migration PRs really carefully! (as Joe mentioned on the last team sync). More than that, migration helps us to find out issues, which lives in Kibana for a long time :)

That's about filter duplicates in es search, seems it's an old issue which reproduces in earlier versions:

image

If you don't mind, I'll try to take this issue in a separate PR.
About the saved search, I refactored code a bit, seems working fine now :)
Thanks for your time 👍

@@ -334,6 +332,24 @@ function VisualizeAppController(
}
);

const updateSavedQueryFromUrl = savedQueryId => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is only setting savedQuery, but it's not triggering the updateFromSavedQuery transition (together with syncing the data plugin state) even though it looks like it should.

In 7.6 I can change the saved query in the url and it will re-apply the filters, but here it's just selecting it in the saved object management popover.

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

I could find a small bug in how global/local filters are handled - seems like they get mixed. Global filters are added to the saved object as local filters:

  • Create new visualization
  • Add filter
  • Pin it
  • Save visualization
  • Go to listing page
  • Open visualization again
  • Pinned filter is added as local filter

@sulemanof sulemanof requested a review from a team as a code owner March 4, 2020 13:20
@sulemanof
Copy link
Contributor Author

Hey @flash1293 @kertal @Dosant
I've managed to resolve almost all of the issues, except the cases with the savedQuery.
I've created an issue #59303 to discuss it and make a decision.

Besides that, I didn't found any other inconsistency.

@flash1293
Copy link
Contributor

Great work @sulemanof ! I will have another look shortly, we can also work on the saved query topic in a separate PR to get this change in.

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

The code looks good. Tomorrow I will take some time to test as well.

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Haven't tested, but aside from the comments given already, code changes mostly LGTM

const {
timefilter: { timefilter },
} = query;

Copy link
Contributor

Choose a reason for hiding this comment

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

These two lines do nothing
You can remove them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Usage of the timefilter is not visible in current diff,
but it's used in previous code

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM! Great work 🌻 ! Issue I've mentioned is resolved. Tested locally in Chrome.
Did you create an issue / PR about the duplicate params in the REST request, If not can do that, np

@lizozom
Copy link
Contributor

lizozom commented Mar 8, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack Spaces API Integration Tests -- security_and_spaces.x-pack/test/spaces_api_integration/security_and_spaces/apis/copy_to_space·ts.spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "before each" hook for "should return 200 when copying to non-existent space"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: spaces api with security
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [not_a_kibana_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_legacy_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_dual_privileges_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_2_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_2_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_apm_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_machine_learning_admin]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_machine_learning_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_monitoring_user]
[00:00:07]           └-: copy to spaces
[00:00:07]             └-> "before all" hook
[00:04:47]             └-: dual-privileges readonly user from the space_1 space
[00:04:47]               └-> "before all" hook
[00:04:47]               └-> "before all" hook
[00:04:47]               └-> should return 200 when copying to space without conflicts or references
[00:04:47]                 └-> "before each" hook: global before each
[00:04:47]                 └-> "before each" hook
[00:04:47]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:47]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:47]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/cxJL3LlbSeytwWRZ5unuhw] deleting index
[00:04:47]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/efiMCMNxR12OYwuO29nm3g] deleting index
[00:04:47]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:47]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:48]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:48]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:48]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:48]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:48]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/99vxxckRSIS0f7mn0M_skA] update_mapping [_doc]
[00:04:48]                   │ debg Migrating saved objects
[00:04:49]                   │ proc [kibana]   log   [15:21:44.222] [info][savedobjects-service] Creating index .kibana_2.
[00:04:49]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:49]                   │ proc [kibana]   log   [15:21:44.306] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:49]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:49]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 24704 finished with response BulkByScrollResponse[took=24.6ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:49]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/99vxxckRSIS0f7mn0M_skA] deleting index
[00:04:49]                   │ proc [kibana]   log   [15:21:44.690] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ proc [kibana]   log   [15:21:44.886] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:49]                   │ proc [kibana]   log   [15:21:44.952] [info][savedobjects-service] Finished in 732ms.
[00:04:49]                 └- ✓ pass  (129ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space without conflicts or references"
[00:04:49]               └-> "after each" hook
[00:04:49]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:49]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:49]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:49]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:50]               └-> should return 200 when copying to space without conflicts with references
[00:04:50]                 └-> "before each" hook: global before each
[00:04:50]                 └-> "before each" hook
[00:04:50]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:50]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:50]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/BZICyau5TKG-TJDF8JZ03Q] deleting index
[00:04:50]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] deleting index
[00:04:50]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:50]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:50]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:50]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:50]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:50]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:50]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/f5LM4YwrTSGGmLroMjo9Mw] update_mapping [_doc]
[00:04:50]                   │ debg Migrating saved objects
[00:04:51]                   │ proc [kibana]   log   [15:21:46.495] [info][savedobjects-service] Creating index .kibana_2.
[00:04:51]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:51]                   │ proc [kibana]   log   [15:21:46.587] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:51]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:51]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 24989 finished with response BulkByScrollResponse[took=40.1ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:51]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/f5LM4YwrTSGGmLroMjo9Mw] deleting index
[00:04:51]                   │ proc [kibana]   log   [15:21:46.967] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:52]                   │ proc [kibana]   log   [15:21:47.187] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:52]                   │ proc [kibana]   log   [15:21:47.251] [info][savedobjects-service] Finished in 758ms.
[00:04:52]                 └- ✓ pass  (120ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space without conflicts with references"
[00:04:52]               └-> "after each" hook
[00:04:52]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:52]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:52]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:52]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:52]               └-> should return 200 when copying to space with conflicts when overwriting
[00:04:52]                 └-> "before each" hook: global before each
[00:04:52]                 └-> "before each" hook
[00:04:52]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:52]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:52]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] deleting index
[00:04:52]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/adLcUJqUS66qbO_295df5g] deleting index
[00:04:52]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:52]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:52]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:52]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:52]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:52]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:52]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/tHt8XFSuRyygRS2-hzis5A] update_mapping [_doc]
[00:04:52]                   │ debg Migrating saved objects
[00:04:53]                   │ proc [kibana]   log   [15:21:48.756] [info][savedobjects-service] Creating index .kibana_2.
[00:04:53]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:53]                   │ proc [kibana]   log   [15:21:48.833] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:53]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:53]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25273 finished with response BulkByScrollResponse[took=24.2ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/tHt8XFSuRyygRS2-hzis5A] deleting index
[00:04:54]                   │ proc [kibana]   log   [15:21:49.198] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ proc [kibana]   log   [15:21:49.399] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:54]                   │ proc [kibana]   log   [15:21:49.462] [info][savedobjects-service] Finished in 707ms.
[00:04:54]                 └- ✓ pass  (96ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space with conflicts when overwriting"
[00:04:54]               └-> "after each" hook
[00:04:54]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:54]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:54]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:54]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:54]               └-> should return 200 when copying to space with conflicts without overwriting
[00:04:54]                 └-> "before each" hook: global before each
[00:04:54]                 └-> "before each" hook
[00:04:54]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:54]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/ENxsZsleRc2fkAxASMD1PQ] deleting index
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] deleting index
[00:04:54]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:54]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:54]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:54]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:54]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:54]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/Trpyac4qSM28mDB657AVLQ] update_mapping [_doc]
[00:04:54]                   │ debg Migrating saved objects
[00:04:55]                   │ proc [kibana]   log   [15:21:51.015] [info][savedobjects-service] Creating index .kibana_2.
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:55]                   │ proc [kibana]   log   [15:21:51.099] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:56]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25554 finished with response BulkByScrollResponse[took=23.7ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/Trpyac4qSM28mDB657AVLQ] deleting index
[00:04:56]                   │ proc [kibana]   log   [15:21:51.471] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ proc [kibana]   log   [15:21:51.681] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:56]                   │ proc [kibana]   log   [15:21:51.751] [info][savedobjects-service] Finished in 737ms.
[00:04:56]                 └- ✓ pass  (103ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space with conflicts without overwriting"
[00:04:56]               └-> "after each" hook
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:56]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:56]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:56]               └-> should return 200 when copying to multiple spaces
[00:04:56]                 └-> "before each" hook: global before each
[00:04:56]                 └-> "before each" hook
[00:04:56]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:56]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/z-Ne9aGnSka_6mrqpMOWdQ] deleting index
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] deleting index
[00:04:57]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:57]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:57]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:57]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:57]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:57]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/dhxYKMerTHK5CIbem--s9Q] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [15:21:53.268] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [15:21:53.378] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:58]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25838 finished with response BulkByScrollResponse[took=40.2ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:58]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/dhxYKMerTHK5CIbem--s9Q] deleting index
[00:04:58]                   │ proc [kibana]   log   [15:21:53.756] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [15:21:53.958] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:58]                   │ proc [kibana]   log   [15:21:54.016] [info][savedobjects-service] Finished in 750ms.
[00:04:59]                 └- ✓ pass  (141ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to multiple spaces"
[00:04:59]               └-> "after each" hook
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:59]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:59]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:59]               └-> should return 200 when copying to non-existent space
[00:04:59]                 └-> "before each" hook: global before each
[00:04:59]                 └-> "before each" hook
[00:04:59]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:59]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/Pad7dtXLRFasWD-dCBX0_g] deleting index
[00:04:59]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:59]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] path: /.kibana/_doc/telemetry%3Atelemetry, params: {index=.kibana, id=telemetry:telemetry}
[00:04:59]                   │      org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][telemetry:telemetry]: routing [null]]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:224) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.onFailure(TransportSingleShardAction.java:210) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleException(TransportSingleShardAction.java:266) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1067) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1176) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:88) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:676) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
[00:04:59]                   │      	at java.lang.Thread.run(Thread.java:830) [?:?]
[00:04:59]                   │      Caused by: org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986][127.0.0.1:6183][indices:data/read/get[s]]
[00:04:59]                   │      Caused by: org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:1685) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.get(IndexShard.java:905) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:174) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:104) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:95) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:106) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:45) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.lambda$asyncShardOperation$0(TransportSingleShardAction.java:110) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:688) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	... 3 more
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ proc [kibana] internal/process/warning.js:153
[00:04:59]                   │ proc [kibana]         throw warning;
[00:04:59]                   │ proc [kibana]         ^
[00:04:59]                   │ proc [kibana] 
[00:04:59]                   │ proc [kibana] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[00:04:59]                   │ proc [kibana]     at emitDeprecationWarning (internal/process/promises.js:111:13)
[00:04:59]                   │ proc [kibana]     at emitWarning (internal/process/promises.js:104:3)
[00:04:59]                   │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:04:59]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:04:59]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:59]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:59]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:59]                   └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "before each" hook"
[00:04:59]                   │
[00:04:59]                   └-> "after each" hook
[00:04:59]                     │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/1Z9H6QcZTyObkg_vhZAvdA] update_mapping [_doc]
[00:04:59]                     │ debg Migrating saved objects
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:04:59]                     │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/5)
[00:05:09]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "after each" hook for "should return 200 when copying to non-existent space""
[00:05:09]                     │
[00:05:09]                     │ERROR [migrate saved objects] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "before each" hook for "should return 200 when copying to non-existent space""
[00:05:09]                     │

Stack Trace

{ DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    at emitDeprecationWarning (internal/process/promises.js:111:13)
    at emitWarning (internal/process/promises.js:104:3)
    at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
    at process._tickCallback (internal/process/next_tick.js:69:34)
  name: 'DeprecationWarning',
  code: 'DEP0018',
  uncaught: true,
  multiple:
   [ Error: [migrate saved objects] request failed (attempt=5/5) -- and ran out of retries
         at KbnClientRequester.request (/dev/shm/workspace/kibana/packages/kbn-dev-utils/target/kbn_client/kbn_client_requester.js:99:23)
         at process._tickCallback (internal/process/next_tick.js:68:7) ] }

Kibana Pipeline / kibana-xpack-agent / X-Pack Spaces API Integration Tests -- security_and_spaces.x-pack/test/spaces_api_integration/security_and_spaces/apis/copy_to_space·ts.spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "after each" hook for "should return 200 when copying to non-existent space"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: spaces api with security
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [not_a_kibana_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_legacy_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_dual_privileges_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_2_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_2_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_apm_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_machine_learning_admin]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_machine_learning_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_monitoring_user]
[00:00:07]           └-: copy to spaces
[00:00:07]             └-> "before all" hook
[00:04:47]             └-: dual-privileges readonly user from the space_1 space
[00:04:47]               └-> "before all" hook
[00:04:47]               └-> "before all" hook
[00:04:47]               └-> should return 200 when copying to space without conflicts or references
[00:04:47]                 └-> "before each" hook: global before each
[00:04:47]                 └-> "before each" hook
[00:04:47]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:47]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:47]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/cxJL3LlbSeytwWRZ5unuhw] deleting index
[00:04:47]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/efiMCMNxR12OYwuO29nm3g] deleting index
[00:04:47]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:47]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:48]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:48]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:48]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:48]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:48]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/99vxxckRSIS0f7mn0M_skA] update_mapping [_doc]
[00:04:48]                   │ debg Migrating saved objects
[00:04:49]                   │ proc [kibana]   log   [15:21:44.222] [info][savedobjects-service] Creating index .kibana_2.
[00:04:49]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:49]                   │ proc [kibana]   log   [15:21:44.306] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:49]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:49]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 24704 finished with response BulkByScrollResponse[took=24.6ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:49]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/99vxxckRSIS0f7mn0M_skA] deleting index
[00:04:49]                   │ proc [kibana]   log   [15:21:44.690] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ proc [kibana]   log   [15:21:44.886] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:49]                   │ proc [kibana]   log   [15:21:44.952] [info][savedobjects-service] Finished in 732ms.
[00:04:49]                 └- ✓ pass  (129ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space without conflicts or references"
[00:04:49]               └-> "after each" hook
[00:04:49]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:49]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:49]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:49]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:50]               └-> should return 200 when copying to space without conflicts with references
[00:04:50]                 └-> "before each" hook: global before each
[00:04:50]                 └-> "before each" hook
[00:04:50]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:50]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:50]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/BZICyau5TKG-TJDF8JZ03Q] deleting index
[00:04:50]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] deleting index
[00:04:50]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:50]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:50]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:50]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:50]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:50]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:50]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/f5LM4YwrTSGGmLroMjo9Mw] update_mapping [_doc]
[00:04:50]                   │ debg Migrating saved objects
[00:04:51]                   │ proc [kibana]   log   [15:21:46.495] [info][savedobjects-service] Creating index .kibana_2.
[00:04:51]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:51]                   │ proc [kibana]   log   [15:21:46.587] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:51]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:51]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 24989 finished with response BulkByScrollResponse[took=40.1ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:51]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/f5LM4YwrTSGGmLroMjo9Mw] deleting index
[00:04:51]                   │ proc [kibana]   log   [15:21:46.967] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:52]                   │ proc [kibana]   log   [15:21:47.187] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:52]                   │ proc [kibana]   log   [15:21:47.251] [info][savedobjects-service] Finished in 758ms.
[00:04:52]                 └- ✓ pass  (120ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space without conflicts with references"
[00:04:52]               └-> "after each" hook
[00:04:52]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:52]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:52]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:52]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:52]               └-> should return 200 when copying to space with conflicts when overwriting
[00:04:52]                 └-> "before each" hook: global before each
[00:04:52]                 └-> "before each" hook
[00:04:52]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:52]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:52]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] deleting index
[00:04:52]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/adLcUJqUS66qbO_295df5g] deleting index
[00:04:52]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:52]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:52]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:52]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:52]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:52]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:52]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/tHt8XFSuRyygRS2-hzis5A] update_mapping [_doc]
[00:04:52]                   │ debg Migrating saved objects
[00:04:53]                   │ proc [kibana]   log   [15:21:48.756] [info][savedobjects-service] Creating index .kibana_2.
[00:04:53]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:53]                   │ proc [kibana]   log   [15:21:48.833] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:53]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:53]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25273 finished with response BulkByScrollResponse[took=24.2ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/tHt8XFSuRyygRS2-hzis5A] deleting index
[00:04:54]                   │ proc [kibana]   log   [15:21:49.198] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ proc [kibana]   log   [15:21:49.399] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:54]                   │ proc [kibana]   log   [15:21:49.462] [info][savedobjects-service] Finished in 707ms.
[00:04:54]                 └- ✓ pass  (96ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space with conflicts when overwriting"
[00:04:54]               └-> "after each" hook
[00:04:54]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:54]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:54]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:54]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:54]               └-> should return 200 when copying to space with conflicts without overwriting
[00:04:54]                 └-> "before each" hook: global before each
[00:04:54]                 └-> "before each" hook
[00:04:54]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:54]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/ENxsZsleRc2fkAxASMD1PQ] deleting index
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] deleting index
[00:04:54]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:54]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:54]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:54]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:54]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:54]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/Trpyac4qSM28mDB657AVLQ] update_mapping [_doc]
[00:04:54]                   │ debg Migrating saved objects
[00:04:55]                   │ proc [kibana]   log   [15:21:51.015] [info][savedobjects-service] Creating index .kibana_2.
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:55]                   │ proc [kibana]   log   [15:21:51.099] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:56]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25554 finished with response BulkByScrollResponse[took=23.7ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/Trpyac4qSM28mDB657AVLQ] deleting index
[00:04:56]                   │ proc [kibana]   log   [15:21:51.471] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ proc [kibana]   log   [15:21:51.681] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:56]                   │ proc [kibana]   log   [15:21:51.751] [info][savedobjects-service] Finished in 737ms.
[00:04:56]                 └- ✓ pass  (103ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space with conflicts without overwriting"
[00:04:56]               └-> "after each" hook
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:56]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:56]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:56]               └-> should return 200 when copying to multiple spaces
[00:04:56]                 └-> "before each" hook: global before each
[00:04:56]                 └-> "before each" hook
[00:04:56]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:56]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/z-Ne9aGnSka_6mrqpMOWdQ] deleting index
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] deleting index
[00:04:57]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:57]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:57]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:57]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:57]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:57]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/dhxYKMerTHK5CIbem--s9Q] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [15:21:53.268] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [15:21:53.378] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:58]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25838 finished with response BulkByScrollResponse[took=40.2ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:58]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/dhxYKMerTHK5CIbem--s9Q] deleting index
[00:04:58]                   │ proc [kibana]   log   [15:21:53.756] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [15:21:53.958] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:58]                   │ proc [kibana]   log   [15:21:54.016] [info][savedobjects-service] Finished in 750ms.
[00:04:59]                 └- ✓ pass  (141ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to multiple spaces"
[00:04:59]               └-> "after each" hook
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:59]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:59]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:59]               └-> should return 200 when copying to non-existent space
[00:04:59]                 └-> "before each" hook: global before each
[00:04:59]                 └-> "before each" hook
[00:04:59]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:59]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/Pad7dtXLRFasWD-dCBX0_g] deleting index
[00:04:59]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:59]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] path: /.kibana/_doc/telemetry%3Atelemetry, params: {index=.kibana, id=telemetry:telemetry}
[00:04:59]                   │      org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][telemetry:telemetry]: routing [null]]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:224) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.onFailure(TransportSingleShardAction.java:210) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleException(TransportSingleShardAction.java:266) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1067) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1176) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:88) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:676) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
[00:04:59]                   │      	at java.lang.Thread.run(Thread.java:830) [?:?]
[00:04:59]                   │      Caused by: org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986][127.0.0.1:6183][indices:data/read/get[s]]
[00:04:59]                   │      Caused by: org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:1685) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.get(IndexShard.java:905) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:174) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:104) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:95) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:106) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:45) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.lambda$asyncShardOperation$0(TransportSingleShardAction.java:110) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:688) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	... 3 more
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ proc [kibana] internal/process/warning.js:153
[00:04:59]                   │ proc [kibana]         throw warning;
[00:04:59]                   │ proc [kibana]         ^
[00:04:59]                   │ proc [kibana] 
[00:04:59]                   │ proc [kibana] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[00:04:59]                   │ proc [kibana]     at emitDeprecationWarning (internal/process/promises.js:111:13)
[00:04:59]                   │ proc [kibana]     at emitWarning (internal/process/promises.js:104:3)
[00:04:59]                   │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:04:59]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:04:59]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:59]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:59]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:59]                   └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "before each" hook"
[00:04:59]                   │
[00:04:59]                   └-> "after each" hook
[00:04:59]                     │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/1Z9H6QcZTyObkg_vhZAvdA] update_mapping [_doc]
[00:04:59]                     │ debg Migrating saved objects
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:04:59]                     │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/5)
[00:05:09]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "after each" hook for "should return 200 when copying to non-existent space""
[00:05:09]                     │

Stack Trace

Error: [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=5/5) -- and ran out of retries
    at KbnClientRequester.request (/dev/shm/workspace/kibana/packages/kbn-dev-utils/target/kbn_client/kbn_client_requester.js:99:23)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / kibana-xpack-agent / X-Pack Spaces API Integration Tests -- security_and_spaces.x-pack/test/spaces_api_integration/security_and_spaces/apis/copy_to_space·ts.spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "before each" hook for "should return 200 when copying to non-existent space"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: spaces api with security
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_legacy_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_dual_privileges_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_dual_privileges_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_dashboard_only_user]
[00:00:01]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_2_read_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_2_all_user]
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_2_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_default_space_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_saved_objects_all_user]
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added role [kibana_rbac_space_1_saved_objects_read_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [not_a_kibana_user]
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_legacy_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_dual_privileges_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_dual_privileges_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_dashboard_only_user]
[00:00:04]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_2_all_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_2_read_user]
[00:00:05]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_2_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_2_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_default_space_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_saved_objects_all_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_kibana_rbac_space_1_saved_objects_read_user]
[00:00:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_apm_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_machine_learning_admin]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_machine_learning_user]
[00:00:07]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] added user [a_monitoring_user]
[00:00:07]           └-: copy to spaces
[00:00:07]             └-> "before all" hook
[00:04:47]             └-: dual-privileges readonly user from the space_1 space
[00:04:47]               └-> "before all" hook
[00:04:47]               └-> "before all" hook
[00:04:47]               └-> should return 200 when copying to space without conflicts or references
[00:04:47]                 └-> "before each" hook: global before each
[00:04:47]                 └-> "before each" hook
[00:04:47]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:47]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:47]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/cxJL3LlbSeytwWRZ5unuhw] deleting index
[00:04:47]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/efiMCMNxR12OYwuO29nm3g] deleting index
[00:04:47]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:47]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:48]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:48]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:48]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:48]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:48]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/99vxxckRSIS0f7mn0M_skA] update_mapping [_doc]
[00:04:48]                   │ debg Migrating saved objects
[00:04:49]                   │ proc [kibana]   log   [15:21:44.222] [info][savedobjects-service] Creating index .kibana_2.
[00:04:49]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:49]                   │ proc [kibana]   log   [15:21:44.306] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:49]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:49]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 24704 finished with response BulkByScrollResponse[took=24.6ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:49]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/99vxxckRSIS0f7mn0M_skA] deleting index
[00:04:49]                   │ proc [kibana]   log   [15:21:44.690] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] update_mapping [_doc]
[00:04:49]                   │ proc [kibana]   log   [15:21:44.886] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:49]                   │ proc [kibana]   log   [15:21:44.952] [info][savedobjects-service] Finished in 732ms.
[00:04:49]                 └- ✓ pass  (129ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space without conflicts or references"
[00:04:49]               └-> "after each" hook
[00:04:49]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:49]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:49]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:49]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:50]               └-> should return 200 when copying to space without conflicts with references
[00:04:50]                 └-> "before each" hook: global before each
[00:04:50]                 └-> "before each" hook
[00:04:50]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:50]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:50]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/BZICyau5TKG-TJDF8JZ03Q] deleting index
[00:04:50]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/JSxg1ti9QamQ-vb7Ip6MaQ] deleting index
[00:04:50]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:50]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:50]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:50]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:50]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:50]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:50]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/f5LM4YwrTSGGmLroMjo9Mw] update_mapping [_doc]
[00:04:50]                   │ debg Migrating saved objects
[00:04:51]                   │ proc [kibana]   log   [15:21:46.495] [info][savedobjects-service] Creating index .kibana_2.
[00:04:51]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:51]                   │ proc [kibana]   log   [15:21:46.587] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:51]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:51]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:51]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 24989 finished with response BulkByScrollResponse[took=40.1ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:51]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/f5LM4YwrTSGGmLroMjo9Mw] deleting index
[00:04:51]                   │ proc [kibana]   log   [15:21:46.967] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:51]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] update_mapping [_doc]
[00:04:52]                   │ proc [kibana]   log   [15:21:47.187] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:52]                   │ proc [kibana]   log   [15:21:47.251] [info][savedobjects-service] Finished in 758ms.
[00:04:52]                 └- ✓ pass  (120ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space without conflicts with references"
[00:04:52]               └-> "after each" hook
[00:04:52]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:52]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:52]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:52]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:52]               └-> should return 200 when copying to space with conflicts when overwriting
[00:04:52]                 └-> "before each" hook: global before each
[00:04:52]                 └-> "before each" hook
[00:04:52]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:52]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:52]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/R9L598h8SIWKPC5YkF5HfQ] deleting index
[00:04:52]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/adLcUJqUS66qbO_295df5g] deleting index
[00:04:52]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:52]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:52]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:52]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:52]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:52]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:52]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/tHt8XFSuRyygRS2-hzis5A] update_mapping [_doc]
[00:04:52]                   │ debg Migrating saved objects
[00:04:53]                   │ proc [kibana]   log   [15:21:48.756] [info][savedobjects-service] Creating index .kibana_2.
[00:04:53]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:53]                   │ proc [kibana]   log   [15:21:48.833] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:53]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:53]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:53]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25273 finished with response BulkByScrollResponse[took=24.2ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/tHt8XFSuRyygRS2-hzis5A] deleting index
[00:04:54]                   │ proc [kibana]   log   [15:21:49.198] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] update_mapping [_doc]
[00:04:54]                   │ proc [kibana]   log   [15:21:49.399] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:54]                   │ proc [kibana]   log   [15:21:49.462] [info][savedobjects-service] Finished in 707ms.
[00:04:54]                 └- ✓ pass  (96ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space with conflicts when overwriting"
[00:04:54]               └-> "after each" hook
[00:04:54]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:54]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:54]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:54]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:54]               └-> should return 200 when copying to space with conflicts without overwriting
[00:04:54]                 └-> "before each" hook: global before each
[00:04:54]                 └-> "before each" hook
[00:04:54]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:54]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/ENxsZsleRc2fkAxASMD1PQ] deleting index
[00:04:54]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/C1v4U5PPRBSF-qK34mvDaQ] deleting index
[00:04:54]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:54]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:54]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:54]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:54]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:54]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:54]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/Trpyac4qSM28mDB657AVLQ] update_mapping [_doc]
[00:04:54]                   │ debg Migrating saved objects
[00:04:55]                   │ proc [kibana]   log   [15:21:51.015] [info][savedobjects-service] Creating index .kibana_2.
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:55]                   │ proc [kibana]   log   [15:21:51.099] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:55]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:55]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:56]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25554 finished with response BulkByScrollResponse[took=23.7ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/Trpyac4qSM28mDB657AVLQ] deleting index
[00:04:56]                   │ proc [kibana]   log   [15:21:51.471] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] update_mapping [_doc]
[00:04:56]                   │ proc [kibana]   log   [15:21:51.681] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:56]                   │ proc [kibana]   log   [15:21:51.751] [info][savedobjects-service] Finished in 737ms.
[00:04:56]                 └- ✓ pass  (103ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to space with conflicts without overwriting"
[00:04:56]               └-> "after each" hook
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:56]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:56]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:56]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:56]               └-> should return 200 when copying to multiple spaces
[00:04:56]                 └-> "before each" hook: global before each
[00:04:56]                 └-> "before each" hook
[00:04:56]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:56]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/z-Ne9aGnSka_6mrqpMOWdQ] deleting index
[00:04:56]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/RWggHn4vRvqrUYmkRg3Oog] deleting index
[00:04:57]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:57]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:57]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:57]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:57]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:57]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:57]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/dhxYKMerTHK5CIbem--s9Q] update_mapping [_doc]
[00:04:57]                   │ debg Migrating saved objects
[00:04:58]                   │ proc [kibana]   log   [15:21:53.268] [info][savedobjects-service] Creating index .kibana_2.
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_2]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:04:58]                   │ proc [kibana]   log   [15:21:53.378] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:04:58]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] updating number_of_replicas to [0] for indices [.kibana_1]
[00:04:58]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:04:58]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] 25838 finished with response BulkByScrollResponse[took=40.2ms,timed_out=false,sliceId=null,updated=0,created=17,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:58]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/dhxYKMerTHK5CIbem--s9Q] deleting index
[00:04:58]                   │ proc [kibana]   log   [15:21:53.756] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] update_mapping [_doc]
[00:04:58]                   │ proc [kibana]   log   [15:21:53.958] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:04:58]                   │ proc [kibana]   log   [15:21:54.016] [info][savedobjects-service] Finished in 750ms.
[00:04:59]                 └- ✓ pass  (141ms) "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space should return 200 when copying to multiple spaces"
[00:04:59]               └-> "after each" hook
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "mappings.json"
[00:04:59]                 │ warn since spaces are enabled, all objects other than the default space were deleted from .kibana rather than deleting the whole index
[00:04:59]                 │ info [saved_objects/spaces] Deleted existing index ".kibana"
[00:04:59]                 │ info [saved_objects/spaces] Unloading indices from "data.json"
[00:04:59]               └-> should return 200 when copying to non-existent space
[00:04:59]                 └-> "before each" hook: global before each
[00:04:59]                 └-> "before each" hook
[00:04:59]                   │ info [saved_objects/spaces] Loading "mappings.json"
[00:04:59]                   │ info [saved_objects/spaces] Loading "data.json"
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_2/Dcd1SNatRVaYczvP65E_ZA] deleting index
[00:04:59]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana_1/Pad7dtXLRFasWD-dCBX0_g] deleting index
[00:04:59]                   │ info [saved_objects/spaces] Deleted existing index [".kibana_2",".kibana_1"]
[00:04:59]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:04:59]                   │ info [r.suppressed] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] path: /.kibana/_doc/telemetry%3Atelemetry, params: {index=.kibana, id=telemetry:telemetry}
[00:04:59]                   │      org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][telemetry:telemetry]: routing [null]]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:224) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.onFailure(TransportSingleShardAction.java:210) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2.handleException(TransportSingleShardAction.java:266) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1067) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1176) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:60) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:56) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:88) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:676) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
[00:04:59]                   │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
[00:04:59]                   │      	at java.lang.Thread.run(Thread.java:830) [?:?]
[00:04:59]                   │      Caused by: org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986][127.0.0.1:6183][indices:data/read/get[s]]
[00:04:59]                   │      Caused by: org.elasticsearch.index.shard.IllegalIndexShardStateException: CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:1685) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.shard.IndexShard.get(IndexShard.java:905) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.innerGet(ShardGetService.java:174) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:104) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.index.get.ShardGetService.get(ShardGetService.java:95) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:106) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.get.TransportGetAction.shardOperation(TransportGetAction.java:45) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.lambda$asyncShardOperation$0(TransportSingleShardAction.java:110) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable.lambda$supply$0(ActionRunnable.java:58) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.action.ActionRunnable$2.doRun(ActionRunnable.java:73) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:688) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:04:59]                   │      	... 3 more
[00:04:59]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:04:59]                   │ proc [kibana] internal/process/warning.js:153
[00:04:59]                   │ proc [kibana]         throw warning;
[00:04:59]                   │ proc [kibana]         ^
[00:04:59]                   │ proc [kibana] 
[00:04:59]                   │ proc [kibana] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[00:04:59]                   │ proc [kibana]     at emitDeprecationWarning (internal/process/promises.js:111:13)
[00:04:59]                   │ proc [kibana]     at emitWarning (internal/process/promises.js:104:3)
[00:04:59]                   │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:04:59]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:04:59]                   │ info [saved_objects/spaces] Created index ".kibana"
[00:04:59]                   │ debg [saved_objects/spaces] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:59]                   │ info [saved_objects/spaces] Indexed 16 docs into ".kibana"
[00:04:59]                   └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "before each" hook"
[00:04:59]                   │
[00:04:59]                   └-> "after each" hook
[00:04:59]                     │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1583678265010711986] [.kibana/1Z9H6QcZTyObkg_vhZAvdA] update_mapping [_doc]
[00:04:59]                     │ debg Migrating saved objects
[00:04:59]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=1/5)
[00:04:59]                     │ERROR [migrate saved objects] request failed (attempt=1/5)
[00:05:00]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=2/5)
[00:05:00]                     │ERROR [migrate saved objects] request failed (attempt=2/5)
[00:05:02]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=3/5)
[00:05:02]                     │ERROR [migrate saved objects] request failed (attempt=3/5)
[00:05:05]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=4/5)
[00:05:05]                     │ERROR [migrate saved objects] request failed (attempt=4/5)
[00:05:09]                     │ERROR [GET http://elastic:changeme@localhost:6181/api/status] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "after each" hook for "should return 200 when copying to non-existent space""
[00:05:09]                     │
[00:05:09]                     │ERROR [migrate saved objects] request failed (attempt=5/5)
[00:05:09]                     └- ✖ fail: "spaces api with security copy to spaces dual-privileges readonly user from the space_1 space "before each" hook for "should return 200 when copying to non-existent space""
[00:05:09]                     │

Stack Trace

Error: [migrate saved objects] request failed (attempt=5/5) -- and ran out of retries
    at KbnClientRequester.request (/dev/shm/workspace/kibana/packages/kbn-dev-utils/target/kbn_client/kbn_client_requester.js:99:23)
    at process._tickCallback (internal/process/next_tick.js:68:7)

History

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

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Tested and works as expected. Thanks for this very important step 🎊

@sulemanof sulemanof merged commit 1d0697a into elastic:master Mar 9, 2020
@sulemanof sulemanof deleted the shim/remove_global_state_visualize branch March 9, 2020 10:45
sulemanof added a commit to sulemanof/kibana that referenced this pull request Mar 9, 2020
* Remove global state in visualize

* Fix saved query

* Update saved query handling

* Resolve merge conflicts

* Use new state syncing helpers

* Fix state behavior

* Prevent loosing the global state

* Update state syncing with url

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
sulemanof added a commit that referenced this pull request Mar 9, 2020
* Remove global state in visualize

* Fix saved query

* Update saved query handling

* Resolve merge conflicts

* Use new state syncing helpers

* Fix state behavior

* Prevent loosing the global state

* Update state syncing with url

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 10, 2020
* master: (22 commits)
  Generate docs from data plugin (elastic#56955)
  Fixes elastic#59513 by hiding one of the symmetric edges rather than omiting it (elastic#59514)
  Harden creation of child processes (elastic#55697)
  [Alerting] replace watcher http APIs used by index threshold Alerting (elastic#59475)
  [Maps][docs] add more details to Quantitative data driven styling docs (elastic#59553)
  chore: 🤖 hide Drilldowns in master (elastic#59698)
  [Discover] Migrate AppState/GlobalState to new app state helpers (elastic#57175)
  Use HTTP request schemas to create types, use those types in the client (elastic#59340)
  [Maps] Support categorical styling for numbers and dates (elastic#57908)
  [ML] Functional API tests - bucket span estimation with custom search.max_buckets (elastic#59665)
  Fix slm_ui setting by changing camel case back to snake case. (elastic#59663)
  removes beta tag (elastic#59618)
  [DOCS] Removed spatial references (elastic#59595)
  fix outdated docs (elastic#58729)
  [ML] Fixes bucket span estimators loading of max_buckets setting (elastic#59639)
  [ML] Refactoring anomaly detector job types (elastic#59556)
  [Upgrade Assistant] Better handling of closed indices (elastic#58890)
  additional visualizations plugin cleanup before moving to NP (elastic#59318)
  In scripted fields, unable to switch the `Type` - getting a console error which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' (elastic#59285)
  [Visualize] Remove global state in visualize (elastic#58352)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 10, 2020
…s/kibana into alerting/fix-flaky-instance-test

* 'alerting/fix-flaky-instance-test' of github.com:gmmorris/kibana: (176 commits)
  Generate docs from data plugin (elastic#56955)
  Fixes elastic#59513 by hiding one of the symmetric edges rather than omiting it (elastic#59514)
  Harden creation of child processes (elastic#55697)
  [Alerting] replace watcher http APIs used by index threshold Alerting (elastic#59475)
  [Maps][docs] add more details to Quantitative data driven styling docs (elastic#59553)
  chore: 🤖 hide Drilldowns in master (elastic#59698)
  [Discover] Migrate AppState/GlobalState to new app state helpers (elastic#57175)
  Use HTTP request schemas to create types, use those types in the client (elastic#59340)
  [Maps] Support categorical styling for numbers and dates (elastic#57908)
  [ML] Functional API tests - bucket span estimation with custom search.max_buckets (elastic#59665)
  Fix slm_ui setting by changing camel case back to snake case. (elastic#59663)
  removes beta tag (elastic#59618)
  [DOCS] Removed spatial references (elastic#59595)
  fix outdated docs (elastic#58729)
  [ML] Fixes bucket span estimators loading of max_buckets setting (elastic#59639)
  [ML] Refactoring anomaly detector job types (elastic#59556)
  [Upgrade Assistant] Better handling of closed indices (elastic#58890)
  additional visualizations plugin cleanup before moving to NP (elastic#59318)
  In scripted fields, unable to switch the `Type` - getting a console error which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' (elastic#59285)
  [Visualize] Remove global state in visualize (elastic#58352)
  ...
jkelastic pushed a commit to jkelastic/kibana that referenced this pull request Mar 12, 2020
* Remove global state in visualize

* Fix saved query

* Update saved query handling

* Resolve merge conflicts

* Use new state syncing helpers

* Fix state behavior

* Prevent loosing the global state

* Update state syncing with url

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Visualize] Pinned filter updates state 2 times
6 participants