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

[7.x] [Upgrade Assistant] Better handling of closed indices (#58890) #59650

Merged
merged 6 commits into from
Mar 10, 2020

Conversation

jloleysens
Copy link
Contributor

Backports the following commits to 7.x:

* Exclude disallowed, private setting at index creation

* Remove intl from tabs component

* Added logic for checking the current index status

* Added ES contract integration test

Using _cluster/state is considered internal. This adds an integration
test for checking the contract in CI.

* Add the client side notification for closed indices

* First version of end-to-end functionality working

* Clean up unused, incorrect type information

* Fix type issues and added a comment about the new reindex options

* Fixed server side tests, added comments and logic updates

Updated the handling of reindexOptions to make it more
backwards compatible (treat it as if it could be undefined).

Also update the logic for checking for open or closed indices.
No optional chaining! It should break if the response does not
exactly match.

* Clean up unused code

* Improved idempotency of test and check explicitly for "close".

Rather check for the specific value we want, as this is what is
also gauranteed by the tests. In this way, the information we
send back to the client is also more accurate regarding the index
status. If, in future, more index states are introduced this will
need to be revisited if it affects the ability for an index to be
re-indexed.

* Update client-side tests

* Fix types

* Handle a case where the index name provided may be an alias

* Fix types

* merge-conflict: finish merge conflict resolution

* Update x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/reindex/closed_warning_icon.tsx

Co-Authored-By: Alison Goryachev <[email protected]>

* merge-conflict: Remove duplicate import

VSCode does not auto-save as expected :sigh:

* ui: Revisit the UI

Moved the warning icon to inside of the button and tooltip to
on the button.

Added a callout to the reindex flyout for when an index is closed.

* logic: slight update to when the index closed callout is shown

We only show the index closed callout in the flyout when the
reindex operation is not considered "completed"

* tests: fix jest tests

* refactor: remove "openAndClose" from reindex endpoints

"openAndClose" should just happen automatically. The user should
not have to pass the flag in, that would be a weird API. We just
need to warn the user about that reindexing a closed index will
take more resources

* test: update upgrade assistant integration test

* fix: types

* copy: use sentence case

* refactor: use the in scope declaration of reindex op

* test: Clean up tests

Reindexing test was generating index name, could just get it from
server response. Also removed openAndClose from all integration
tests

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
# Conflicts:
#	x-pack/plugins/upgrade_assistant/common/types.ts
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/cell.tsx
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/index_table.tsx
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/list.test.tsx
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/list.tsx
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/reindex/button.tsx
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/reindex/flyout/checklist_step.test.tsx
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/reindex/flyout/checklist_step.tsx
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/deprecations/reindex/flyout/container.tsx
#	x-pack/plugins/upgrade_assistant/server/lib/__snapshots__/es_migration_apis.test.ts.snap
#	x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts
Also updated existing Jest snapshots.
The integration test on master is reference 7.0 because it aims
toward helping users migrate from 7.0 -> 8.0. The 7.x branch
is running 6.0 data as it helps migrate from older indices.
@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

elasticmachine and others added 3 commits March 10, 2020 07:09
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/dashboard/dashboard_query_bar·js.dashboard app using current data dashboard query bar causes panels to reload when refresh is clicked

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 5 times on tracked branches: https://github.com/elastic/kibana/issues/59615

[00:00:00]       │
[00:00:00]         └-: dashboard app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: using current data
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook: loadCurrentData
[00:00:00]               │ info [dashboard/current/data] Loading "mappings.json"
[00:00:00]               │ info [dashboard/current/data] Loading "data.json.gz"
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-dogs-2018-01-01] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:00:00]               │ info [dashboard/current/data] Created index "animals-dogs-2018-01-01"
[00:00:00]               │ debg [dashboard/current/data] "animals-dogs-2018-01-01" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-dogs-2018-04-10] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:00:00]               │ info [dashboard/current/data] Created index "animals-dogs-2018-04-10"
[00:00:00]               │ debg [dashboard/current/data] "animals-dogs-2018-04-10" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-cats-2018-01-01] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:00:00]               │ info [dashboard/current/data] Created index "animals-cats-2018-01-01"
[00:00:00]               │ debg [dashboard/current/data] "animals-cats-2018-01-01" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-cats-2018-04-10] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:00:00]               │ info [dashboard/current/data] Created index "animals-cats-2018-04-10"
[00:00:00]               │ debg [dashboard/current/data] "animals-cats-2018-04-10" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [dogbreeds] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:00:00]               │ info [dashboard/current/data] Created index "dogbreeds"
[00:00:00]               │ debg [dashboard/current/data] "dogbreeds" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:00]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [logstash-0] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:01]               │ info [dashboard/current/data] Created index "logstash-0"
[00:00:01]               │ debg [dashboard/current/data] "logstash-0" settings {"index":{"analysis":{"analyzer":{"makelogs_url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:10]               │ info progress: 9925
[00:00:12]               │ info [dashboard/current/data] Indexed 6 docs into "animals-dogs-2018-01-01"
[00:00:12]               │ info [dashboard/current/data] Indexed 6 docs into "animals-dogs-2018-04-10"
[00:00:12]               │ info [dashboard/current/data] Indexed 6 docs into "animals-cats-2018-01-01"
[00:00:12]               │ info [dashboard/current/data] Indexed 5 docs into "animals-cats-2018-04-10"
[00:00:12]               │ info [dashboard/current/data] Indexed 6 docs into "dogbreeds"
[00:00:12]               │ info [dashboard/current/data] Indexed 14005 docs into "logstash-0"
[00:05:36]             └-: dashboard query bar
[00:05:36]               └-> "before all" hook
[00:05:36]               └-> "before all" hook
[00:05:36]                 │ info [dashboard/current/kibana] Loading "mappings.json"
[00:05:36]                 │ info [dashboard/current/kibana] Loading "data.json.gz"
[00:05:36]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/5tE7G3X0TUqVCZX6CyXOxQ] deleting index
[00:05:36]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_1/EUE5g3IaRxOmS7WSshoskQ] deleting index
[00:05:36]                 │ info [dashboard/current/kibana] Deleted existing index [".kibana_2",".kibana_1"]
[00:05:36]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:05:36]                 │ info [dashboard/current/kibana] Created index ".kibana"
[00:05:36]                 │ debg [dashboard/current/kibana] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana/sZp5YGz4SkSyGhRGcF0gXQ] update_mapping [_doc]
[00:05:36]                 │ info [dashboard/current/kibana] Indexed 84 docs into ".kibana"
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana/sZp5YGz4SkSyGhRGcF0gXQ] update_mapping [_doc]
[00:05:36]                 │ debg Migrating saved objects
[00:05:36]                 │ proc [kibana]   log   [14:23:43.268] [info][savedobjects-service] Creating index .kibana_2.
[00:05:36]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:05:36]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] updating number_of_replicas to [0] for indices [.kibana_2]
[00:05:36]                 │ proc [kibana]   log   [14:23:43.324] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:05:36]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:05:36]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] updating number_of_replicas to [0] for indices [.kibana_1]
[00:05:36]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] 5566 finished with response BulkByScrollResponse[took=61ms,timed_out=false,sliceId=null,updated=0,created=84,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:05:36]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana/sZp5YGz4SkSyGhRGcF0gXQ] deleting index
[00:05:36]                 │ proc [kibana]   log   [14:23:43.669] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:36]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:36]                 │ proc [kibana]   log   [14:23:43.911] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:05:37]                 │ proc [kibana]   log   [14:23:43.968] [info][savedobjects-service] Finished in 702ms.
[00:05:37]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:05:37]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [.kibana_2/Y6DsEZlGTZmWbh2Bl3w3sg] update_mapping [_doc]
[00:05:37]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 90:139970 "INFO: 2020-03-10T14:23:43Z
[00:05:37]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:05:37]                 │
[00:05:37]                 │      "
[00:05:38]                 │ debg replacing kibana config doc: {"defaultIndex":"0bf35f60-3dc9-11e8-8660-4d65aa086b3c"}
[00:05:39]                 │ debg navigating to dashboard url: http://localhost:6121/app/kibana#/dashboards
[00:05:39]                 │ debg Navigate to: http://localhost:6121/app/kibana#/dashboards
[00:05:39]                 │ debg ... sleep(700) start
[00:05:39]                 │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1583850226351#/dashboards 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:39]                 │
[00:05:39]                 │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:40]                 │ debg ... sleep(700) end
[00:05:40]                 │ debg returned from get, calling refresh
[00:05:40]                 │ debg browser[INFO] http://localhost:6121/app/kibana?_t=1583850226351#/dashboards 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:40]                 │
[00:05:40]                 │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:41]                 │ debg currentUrl = http://localhost:6121/app/kibana#/dashboards
[00:05:41]                 │          appUrl = http://localhost:6121/app/kibana#/dashboards
[00:05:41]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:42]                 │ debg TestSubjects.find(kibanaChrome)
[00:05:42]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:05:42]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 90:139970 "INFO: 2020-03-10T14:23:48Z
[00:05:42]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:05:42]                 │
[00:05:42]                 │      "
[00:05:42]                 │ debg ... sleep(501) start
[00:05:43]                 │ debg ... sleep(501) end
[00:05:43]                 │ debg in navigateTo url = http://localhost:6121/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:05:43]                 │ debg TestSubjects.exists(statusPageContainer)
[00:05:43]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:45]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:46]                 │ debg isGlobalLoadingIndicatorVisible
[00:05:46]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:46]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:46]                 │ debg browser[INFO] http://localhost:6121/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now)) 350 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:46]                 │
[00:05:46]                 │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:48]                 │ debg browser[INFO] http://localhost:6121/bundles/plugin/data/data.plugin.js 90:139970 "INFO: 2020-03-10T14:23:54Z
[00:05:48]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:05:48]                 │
[00:05:48]                 │      "
[00:05:48]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:05:48]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:48]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:48]                 │ debg Load Saved Dashboard dashboard with filter
[00:05:48]                 │ debg gotoDashboardLandingPage
[00:05:48]                 │ debg onDashboardLandingPage
[00:05:48]                 │ debg TestSubjects.exists(dashboardLandingPage)
[00:05:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=5000
[00:05:48]                 │ debg searchForItemWithName: dashboard with filter
[00:05:48]                 │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000
[00:05:49]                 │ debg isGlobalLoadingIndicatorVisible
[00:05:49]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:49]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:05:51]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:52]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:52]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:52]                 │ debg TestSubjects.click(dashboardListingTitleLink-dashboard-with-filter)
[00:05:52]                 │ debg Find.clickByCssSelector('[data-test-subj="dashboardListingTitleLink-dashboard-with-filter"]') with timeout=10000
[00:05:52]                 │ debg Find.findByCssSelector('[data-test-subj="dashboardListingTitleLink-dashboard-with-filter"]') with timeout=10000
[00:05:52]                 │ debg isGlobalLoadingIndicatorVisible
[00:05:52]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:05:52]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:05:52]                 │ debg browser[WARNING] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 5:99123 "Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
[00:05:52]                 │      Arguments: 
[00:05:52]                 │      [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: Mon Apr 09 2018 17:56:08 GMT-0400, _f: undefined, _strict: undefined, _locale: [object Object]
[00:05:52]                 │      Error
[00:05:52]                 │          at Function.createFromInputFallback (http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:6:99531)
[00:05:52]                 │          at http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:6:119281
[00:05:52]                 │          at http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:6:119332
[00:05:52]                 │          at Ct (http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:6:119626)
[00:05:52]                 │          at St (http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:6:120003)
[00:05:52]                 │          at Mt (http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:6:120085)
[00:05:52]                 │          at o (http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:6:96369)
[00:05:52]                 │          at Function.convertTimeToUTCString (http://localhost:6121/bundles/7.bundle.js:1:33781)
[00:05:52]                 │          at Function.areTimesEqual (http://localhost:6121/bundles/7.bundle.js:1:33969)
[00:05:52]                 │          at DashboardStateManager.getTimeChanged (http://localhost:6121/bundles/7.bundle.js:1:163398)"
[00:05:53]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:05:53]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:05:53]                 │ debg TestSubjects.missingOrFail(dashboardLandingPage)
[00:05:53]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=10000
[00:05:53]               └-> causes panels to reload when refresh is clicked
[00:05:53]                 └-> "before each" hook: global before each
[00:05:53]                 │ info [dashboard/current/data] Unloading indices from "mappings.json"
[00:05:53]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-dogs-2018-01-01/DCuskwn3R8-9Ehb0eq5aeQ] deleting index
[00:05:53]                 │ info [dashboard/current/data] Deleted existing index "animals-dogs-2018-01-01"
[00:05:53]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-dogs-2018-04-10/GIqzjTIjT2eZDzSe3Vx4xQ] deleting index
[00:05:53]                 │ info [dashboard/current/data] Deleted existing index "animals-dogs-2018-04-10"
[00:05:53]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-cats-2018-01-01/52H0s7ATQEuc0Xy78mYw1g] deleting index
[00:05:53]                 │ info [dashboard/current/data] Deleted existing index "animals-cats-2018-01-01"
[00:05:53]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [animals-cats-2018-04-10/JZIN4fr2RK-9s8R9rVzVsA] deleting index
[00:05:53]                 │ info [dashboard/current/data] Deleted existing index "animals-cats-2018-04-10"
[00:05:53]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [dogbreeds/rSE1Nzc0RuGPylaVFJnYqw] deleting index
[00:05:53]                 │ info [dashboard/current/data] Deleted existing index "dogbreeds"
[00:05:53]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1583848770141824723] [logstash-0/TBQ1Rvk-TFadeXqJJg3fpQ] deleting index
[00:05:53]                 │ info [dashboard/current/data] Deleted existing index "logstash-0"
[00:05:53]                 │ info [dashboard/current/data] Unloading indices from "data.json.gz"
[00:05:55]                 │ debg TestSubjects.click(querySubmitButton)
[00:05:55]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:05:55]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:05:55]                 │ debg TestSubjects.find(embeddedSavedSearchDocTable)
[00:05:55]                 │ debg Find.findByCssSelector('[data-test-subj="embeddedSavedSearchDocTable"]') with timeout=10000
[00:05:55]                 │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/dashboard app using current data dashboard query bar causes panels to reload when refresh is clicked.png"
[00:05:55]                 │ info Current URL is: http://localhost:6121/app/kibana#/dashboard/61c58ad0-3dd3-11e8-b2b9-5d5dc1715159?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Mon%20Apr%2009%202018%2017:56:08%20GMT-0400%27,to:%27Wed%20Apr%2011%202018%2017:56:08%20GMT-0400%27))&_a=(description:%27%27,filters:!((%27$state%27:(store:appState),meta:(alias:!n,disabled:!f,index:a0f483a0-3dc9-11e8-8660-4d65aa086b3c,key:animal,negate:!f,params:(query:dog,type:phrase),type:phrase,value:dog),query:(match:(animal:(query:dog,type:phrase))))),fullScreenMode:!f,options:(darkTheme:!f,hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:%271%27,w:24,x:0,y:0),id:%2750643b60-3dd3-11e8-b2b9-5d5dc1715159%27,panelIndex:%271%27,type:visualization,version:%277.7.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:%272%27,w:24,x:24,y:0),id:a16d1990-3dca-11e8-8660-4d65aa086b3c,panelIndex:%272%27,type:search,version:%277.7.0-SNAPSHOT%27)),query:(language:lucene,query:%27%27),timeRestore:!t,title:%27dashboard%20with%20filter%27,viewMode:view)
[00:05:55]                 │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/dashboard app using current data dashboard query bar causes panels to reload when refresh is clicked.html
[00:05:55]                 └- ✖ fail: "dashboard app using current data dashboard query bar causes panels to reload when refresh is clicked"
[00:05:55]                 │

Stack Trace

Error: expected 6 to equal 0
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (packages/kbn-expect/expect.js:227:8)
    at Assertion.be (packages/kbn-expect/expect.js:69:22)
    at Context.it (test/functional/apps/dashboard/dashboard_query_bar.js:45:33)
    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

@jloleysens jloleysens merged commit e1d9aa6 into elastic:7.x Mar 10, 2020
@jloleysens jloleysens deleted the backport/7.x/pr-58890 branch March 10, 2020 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants