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] remove legacy security plugin (#75648) #77783

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

pgayvallet
Copy link
Contributor

Backports the following commits to 7.x:

* remove legacy security plugin

* remove legacy plugin check

* adapt mocha tests

* update CODEOWNERS
# Conflicts:
#	.github/CODEOWNERS
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/async_scripted_fields·js.discover async search with scripted fields query return results with valid scripted field

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: discover
[00:00:00]           └-> "before all" hook
[00:08:58]           └-: async search with scripted fields
[00:08:58]             └-> "before all" hook
[00:08:58]             └-> "before all" hook
[00:08:58]               │ info [kibana_scripted_fields_on_logstash] Loading "mappings.json"
[00:08:58]               │ info [kibana_scripted_fields_on_logstash] Loading "data.json.gz"
[00:08:59]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_1/IPRp4J3GTO6zmMXfwi-_YQ] deleting index
[00:08:59]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_2/ymMlY2qFQV-uifAiWMO9fA] deleting index
[00:08:59]               │ info [kibana_scripted_fields_on_logstash] Deleted existing index [".kibana_2",".kibana_1"]
[00:08:59]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:08:59]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:08:59]               │ info [kibana_scripted_fields_on_logstash] Created index ".kibana_1"
[00:08:59]               │ debg [kibana_scripted_fields_on_logstash] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:08:59]               │ info [kibana_scripted_fields_on_logstash] Indexed 19 docs into ".kibana_1"
[00:08:59]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_1/z2s0ImXwT5a0WGJ-KJnLHA] update_mapping [_doc]
[00:08:59]               │ debg Migrating saved objects
[00:08:59]               │ proc [kibana]   log   [16:46:41.283] [info][savedobjects-service] Creating index .kibana_2.
[00:08:59]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:08:59]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] updating number_of_replicas to [0] for indices [.kibana_2]
[00:08:59]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:08:59]               │ proc [kibana]   log   [16:46:41.366] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:08:59]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_2/rk7_NvZvQB6_vVlWYsGCUQ] update_mapping [_doc]
[00:08:59]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_2/rk7_NvZvQB6_vVlWYsGCUQ] update_mapping [_doc]
[00:08:59]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] [.kibana_2/rk7_NvZvQB6_vVlWYsGCUQ] update_mapping [_doc]
[00:08:59]               │ proc [kibana]   log   [16:46:41.550] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:08:59]               │ proc [kibana]   log   [16:46:41.604] [info][savedobjects-service] Finished in 323ms.
[00:08:59]               │ info [logstash_functional] Loading "mappings.json"
[00:08:59]               │ info [logstash_functional] Loading "data.json.gz"
[00:08:59]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:08:59]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:08:59]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:09:01]               │ debg set roles = test_logstash_reader,global_discover_read
[00:09:01]               │ debg creating user test_user
[00:09:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] updated user [test_user]
[00:09:01]               │ debg created user test_user
[00:09:01]               │ debg TestSubjects.exists(kibanaChrome)
[00:09:01]               │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:09:01]               │ debg TestSubjects.find(kibanaChrome)
[00:09:01]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:09:01]               │ debg browser[INFO] http://localhost:61181/spaces/space_selector#/view/50f3f760-f905-11ea-88da-cfc53f40f79a?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:'logstash-*',interval:auto,query:(language:kuery,query:''),sort:!()) 341 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:09:01]               │
[00:09:01]               │ debg browser[INFO] http://localhost:61181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:03]               │ debg applying update to kibana config: {"timepicker:timeDefaults":"{  \"from\": \"Sep 18, 2015 @ 19:37:13.000\",  \"to\": \"Sep 23, 2015 @ 02:30:09.000\"}"}
[00:09:03]               │ERROR browser[SEVERE] http://localhost:61181/api/saved_objects/_bulk_get - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:09:03]               │ debg browser[INFO] http://localhost:61181/34899/bundles/core/core.entry.js 97:272211 "Detected an unhandled Promise rejection.
[00:09:03]               │      Error: Forbidden"
[00:09:03]               │ERROR browser[SEVERE] http://localhost:61181/34899/bundles/core/core.entry.js 27:9752 
[00:09:04]             └-> query should show failed shards pop up
[00:09:04]               └-> "before each" hook: global before each
[00:09:04]               │ debg navigating to discover url: http://localhost:61181/app/discover#/
[00:09:04]               │ debg navigate to: http://localhost:61181/app/discover#/
[00:09:04]               │ debg browser[INFO] http://localhost:61181/app/discover?_t=1600361206359#/ 341 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:09:04]               │
[00:09:04]               │ debg browser[INFO] http://localhost:61181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:04]               │ debg ... sleep(700) start
[00:09:05]               │ debg ... sleep(700) end
[00:09:05]               │ debg returned from get, calling refresh
[00:09:06]               │ERROR browser[SEVERE] http://localhost:61181/34899/bundles/core/core.entry.js 97:271132 TypeError: Failed to fetch
[00:09:06]               │ debg browser[INFO] http://localhost:61181/app/discover?_t=1600361206359#/ 341 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:09:06]               │
[00:09:06]               │ debg browser[INFO] http://localhost:61181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:06]               │ debg currentUrl = http://localhost:61181/app/discover#/
[00:09:06]               │          appUrl = http://localhost:61181/app/discover#/
[00:09:06]               │ debg TestSubjects.find(kibanaChrome)
[00:09:06]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:09:08]               │ debg ... sleep(501) start
[00:09:08]               │ERROR browser[SEVERE] http://localhost:61181/api/saved_objects/_bulk_get - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:09:08]               │ debg browser[INFO] http://localhost:61181/34899/bundles/core/core.entry.js 97:272211 "Detected an unhandled Promise rejection.
[00:09:08]               │      Error: Forbidden"
[00:09:08]               │ERROR browser[SEVERE] http://localhost:61181/34899/bundles/core/core.entry.js 27:9752 
[00:09:08]               │ proc [kibana]   log   [16:46:50.280] [error][http] { Error: Unable to find canvas-workpad,dashboard,lens,map,visualization
[00:09:08]               │ proc [kibana]     at SecureSavedObjectsClientWrapper.ensureAuthorized (/dev/shm/workspace/parallel/18/kibana/build/kibana-build-xpack/x-pack/plugins/security/server/saved_objects/secure_saved_objects_client_wrapper.js:229:48)
[00:09:08]               │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:09:08]               │ proc [kibana]   isBoom: true,
[00:09:08]               │ proc [kibana]   isServer: false,
[00:09:08]               │ proc [kibana]   data: null,
[00:09:08]               │ proc [kibana]   output:
[00:09:08]               │ proc [kibana]    { statusCode: 403,
[00:09:08]               │ proc [kibana]      payload:
[00:09:08]               │ proc [kibana]       { statusCode: 403,
[00:09:08]               │ proc [kibana]         error: 'Forbidden',
[00:09:08]               │ proc [kibana]         message:
[00:09:08]               │ proc [kibana]          'Unable to find canvas-workpad,dashboard,lens,map,visualization' },
[00:09:08]               │ proc [kibana]      headers: {} },
[00:09:08]               │ proc [kibana]   reformat: [Function],
[00:09:08]               │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/forbidden' }
[00:09:08]               │ proc [kibana]  error  [16:46:50.250]  Error: Internal Server Error
[00:09:08]               │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/parallel/18/kibana/build/kibana-build-xpack/src/core/server/http/router/response_adapter.js:69:19)
[00:09:08]               │ proc [kibana]     at Router.handle (/dev/shm/workspace/parallel/18/kibana/build/kibana-build-xpack/src/core/server/http/router/router.js:177:34)
[00:09:08]               │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:09:08]               │ERROR browser[SEVERE] http://localhost:61181/internal/global_search/find - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:09:08]               │ debg browser[WARNING] http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 20:70019 "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:09:08]               │      Arguments: 
[00:09:08]               │      [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: Sep 18, 2015 @ 19:37:13.000, _f: undefined, _strict: undefined, _locale: [object Object]
[00:09:08]               │      Error
[00:09:08]               │          at Function.createFromInputFallback (http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:70427)
[00:09:08]               │          at http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90169
[00:09:08]               │          at http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90220
[00:09:08]               │          at Et (http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90514)
[00:09:08]               │          at Ct (http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90891)
[00:09:08]               │          at wt (http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:90973)
[00:09:08]               │          at r (http://localhost:61181/34899/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:21:67265)
[00:09:08]               │          at Object.parse (http://localhost:61181/34899/bundles/plugin/data/data.plugin.js:9:314286)
[00:09:08]               │          at validateTimeRange (http://localhost:61181/34899/bundles/plugin/data/data.plugin.js:9:186475)
[00:09:08]               │          at t._next (http://localhost:61181/34899/bundles/plugin/data/data.plugin.js:9:207872)"
[00:09:08]               │ debg ... sleep(501) end
[00:09:08]               │ debg in navigateTo url = http://localhost:61181/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Sep%2018,%202015%20@%2019:37:13.000%27,to:%27Sep%2023,%202015%20@%2002:30:09.000%27))&_a=(columns:!(_source),filters:!(),index:eddf62c0-85bb-11ea-a555-0b6139dddc19,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:09:08]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:09:09]               │ debg ... sleep(501) start
[00:09:09]               │ debg ... sleep(501) end
[00:09:09]               │ debg in navigateTo url = http://localhost:61181/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Sep%2018,%202015%20@%2019:37:13.000%27,to:%27Sep%2023,%202015%20@%2002:30:09.000%27))&_a=(columns:!(_source),filters:!(),index:eddf62c0-85bb-11ea-a555-0b6139dddc19,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:09:09]               │ debg TestSubjects.exists(statusPageContainer)
[00:09:09]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:09:12]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:09:13]               │ debg TestSubjects.click(indexPattern-switch-link)
[00:09:13]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:09:13]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:09:13]               │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'logsta*')
[00:09:13]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:09:13]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logsta*"]') with timeout=10000
[00:09:13]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logsta*"]') with timeout=10000
[00:09:14]               │ debg isGlobalLoadingIndicatorVisible
[00:09:14]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:14]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:16]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:17]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:17]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:17]               │ debg TestSubjects.getVisibleText(euiToastHeader)
[00:09:17]               │ debg TestSubjects.find(euiToastHeader)
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="euiToastHeader"]') with timeout=10000
[00:09:17]               │ debg 1 of 3 shards failed
[00:09:17]               └- ✓ pass  (13.0s) "discover async search with scripted fields query should show failed shards pop up"
[00:09:17]             └-> query return results with valid scripted field
[00:09:17]               └-> "before each" hook: global before each
[00:09:17]               │ debg TestSubjects.click(indexPattern-switch-link)
[00:09:17]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:09:17]               │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'logstash-*')
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:09:17]               │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logstash-*"]') with timeout=10000
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="logstash-*"]') with timeout=10000
[00:09:17]               │ debg isGlobalLoadingIndicatorVisible
[00:09:17]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:17]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:17]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:17]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:21]               │ debg QueryBar.setQuery(php* OR *jpg OR *css*)
[00:09:21]               │ debg TestSubjects.click(queryInput)
[00:09:21]               │ debg Find.clickByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:21]               │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:21]               │ debg TestSubjects.getAttribute(queryInput, value)
[00:09:21]               │ debg TestSubjects.find(queryInput)
[00:09:21]               │ debg Find.findByCssSelector('[data-test-subj="queryInput"]') with timeout=10000
[00:09:21]               │ debg TestSubjects.click(querySubmitButton)
[00:09:21]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:09:21]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:09:22]               │ debg isGlobalLoadingIndicatorVisible
[00:09:22]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:23]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:23]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:25]               │ info [o.e.x.c.a.AsyncResultsService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237] failed to update expiration time for async-search [FjlFS3o2S0hUUVJXX3c4aGhuNW9lSkEcWHZRN3FRX0hTdDJhX19JVjZVd01TQToxMDkyOQ==]
[00:09:25]               │      org.elasticsearch.transport.RemoteTransportException: [kibana-ci-immutable-ubuntu-16-tests-xxl-1600358542530205237][127.0.0.1:61183][indices:data/write/update[s]]
[00:09:25]               │      Caused by: org.elasticsearch.index.engine.VersionConflictEngineException: [9EKz6KHTQRW_w8hhn5oeJA]: version conflict, required seqNo [15], primary term [1]. current document has seqNo [16] and primary term [1]
[00:09:25]               │      	at org.elasticsearch.index.engine.InternalEngine.planIndexingAsPrimary(InternalEngine.java:1059) ~[elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.index.engine.InternalEngine.indexingStrategyForOperation(InternalEngine.java:1022) ~[elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.index.engine.InternalEngine.index(InternalEngine.java:911) ~[elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:823) ~[elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:795) ~[elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:752) ~[elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:274) ~[elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.action.bulk.TransportShardBulkAction$2.doRun(TransportShardBulkAction.java:164) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.action.bulk.TransportShardBulkAction.performOnPrimary(TransportShardBulkAction.java:209) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:116) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.action.bulk.TransportShardBulkAction.dispatchedShardOperationOnPrimary(TransportShardBulkAction.java:82) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.action.support.replication.TransportWriteAction$1.doRun(TransportWriteAction.java:159) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:737) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:09:25]               │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
[00:09:25]               │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
[00:09:25]               │      	at java.lang.Thread.run(Thread.java:832) [?:?]
[00:09:25]               │ proc [kibana]   log   [16:47:07.005] [error][data][elasticsearch] [resource_not_found_exception]: FjlFS3o2S0hUUVJXX3c4aGhuNW9lSkEcWHZRN3FRX0hTdDJhX19JVjZVd01TQToxMDkyOQ==
[00:09:25]               │ERROR browser[SEVERE] http://localhost:61181/internal/search/ese/FjlFS3o2S0hUUVJXX3c4aGhuNW9lSkEcWHZRN3FRX0hTdDJhX19JVjZVd01TQToxMDkyOQ== - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:09:25]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:25]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:25]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:25]               │ debg --- retry.tryForTime error: expected '14,005' to equal '13,301'
[00:09:25]               │ debg isGlobalLoadingIndicatorVisible
[00:09:25]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:25]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:27]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:27]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:27]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:27]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:27]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:27]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:27]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:28]               │ debg isGlobalLoadingIndicatorVisible
[00:09:28]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:28]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:29]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:30]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:30]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:30]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:30]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:30]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:30]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:30]               │ debg isGlobalLoadingIndicatorVisible
[00:09:30]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:30]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:32]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:32]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:32]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:32]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:32]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:32]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:32]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:33]               │ debg isGlobalLoadingIndicatorVisible
[00:09:33]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:33]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:34]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:35]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:35]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:35]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:35]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:35]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:35]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:35]               │ debg isGlobalLoadingIndicatorVisible
[00:09:35]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:35]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:37]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:37]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:37]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:37]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:37]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:37]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:38]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:38]               │ debg isGlobalLoadingIndicatorVisible
[00:09:38]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:38]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:40]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:40]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:40]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:40]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:40]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:40]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:40]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:41]               │ debg isGlobalLoadingIndicatorVisible
[00:09:41]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:41]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:42]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:43]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:43]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:43]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:43]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:43]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:43]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:43]               │ debg isGlobalLoadingIndicatorVisible
[00:09:43]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:43]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:45]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:45]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:45]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:45]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:45]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:45]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:45]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:46]               │ debg isGlobalLoadingIndicatorVisible
[00:09:46]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:46]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:47]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:48]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:48]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:48]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:48]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:48]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:48]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:48]               │ debg isGlobalLoadingIndicatorVisible
[00:09:48]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:50]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:50]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:50]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:50]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:50]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:50]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:50]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:51]               │ debg isGlobalLoadingIndicatorVisible
[00:09:51]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:51]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:52]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:53]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:53]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:53]               │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:53]               │ debg TestSubjects.find(discoverQueryHits)
[00:09:53]               │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:53]               │ debg --- retry.tryForTime failed again with the same message...
[00:09:53]               │ info Taking screenshot "/dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/screenshots/failure/discover async search with scripted fields query return results with valid scripted field.png"
[00:09:54]               │ info Current URL is: http://localhost:61181/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%27Sep%2018,%202015%20@%2019:37:13.000%27,to:%27Sep%2023,%202015%20@%2002:30:09.000%27))&_a=(columns:!(_source),filters:!(),index:eddf62c0-85bb-11ea-a555-0b6139dddc19,interval:auto,query:(language:kuery,query:%27php*%20OR%20*jpg%20OR%20*css*%27),sort:!())
[00:09:54]               │ info Saving page source to: /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/failure_debug/html/discover async search with scripted fields query return results with valid scripted field.html
[00:09:54]               └- ✖ fail: discover async search with scripted fields query return results with valid scripted field
[00:09:54]               │      Error: retry.tryForTime timeout: Error: expected '14,005' to equal '13,301'
[00:09:54]               │     at Assertion.assert (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:100:11)
[00:09:54]               │     at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:227:8)
[00:09:54]               │     at Assertion.be (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:69:22)
[00:09:54]               │     at /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/apps/discover/async_scripted_fields.js:122:61
[00:09:54]               │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:09:54]               │       at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:28:9)
[00:09:54]               │       at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:68:13)
[00:09:54]               │ 
[00:09:54]               │ 

Stack Trace

Error: retry.tryForTime timeout: Error: expected '14,005' to equal '13,301'
    at Assertion.assert (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:69:22)
    at /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/apps/discover/async_scripted_fields.js:122:61
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Build metrics

distributable file count

id value diff baseline
default 47628 -1 47629

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

@pgayvallet pgayvallet merged commit 3c889c9 into elastic:7.x Sep 17, 2020
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.

2 participants