Skip to content

[7.x] [SavedObjects] Add aggregations support (#96292)#97361

Merged
pgayvallet merged 1 commit intoelastic:7.xfrom
pgayvallet:backport/7.x/pr-96292
Apr 16, 2021
Merged

[7.x] [SavedObjects] Add aggregations support (#96292)#97361
pgayvallet merged 1 commit intoelastic:7.xfrom
pgayvallet:backport/7.x/pr-96292

Conversation

@pgayvallet
Copy link
Contributor

Backports the following commits to 7.x:

* step 1 to add aggs in the find function of saved object

* setp 2 - add specific unit test to aggs + fix bug found during integrations

* step 3 - add security api_integration arounds aggs

* fix types

* unit test added for aggs_utils

* add documentation

* fix docs

* review I

* doc

* try to fix test

* add the new property to the saved object globaltype

* fix types

* delete old files

* fix types + test api integration

* type fix + test

* Update src/core/server/saved_objects/types.ts

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>

* review I

* change our validation to match discussion with Pierre and Rudolph

* Validate multiple items nested filter query through KueryNode

* remove unused import

* review + put back test

* migrate added tests to new TS file

* fix documentation

* fix license header

* move stuff

* duplicating test mappings

* rename some stuff

* move ALL the things

* cast to aggregation container

* update generated doc

* add deep nested validation

* rewrite the whole validation mechanism

* some cleanup

* minor cleanup

* update generated doc

* adapt telemetry client

* fix API integ tests

* fix doc

* TOTO-less

* remove xpack tests

* list supported / unsupported aggregations

* typo fix

* extract some validation function

* fix indent

* add some unit tests

* adapt FTR assertions

* update doc

* fix doc

* doc again

* cleanup test names

* improve tsdoc on validation functions

* perf nit

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@pgayvallet pgayvallet added the backport This PR is a backport of another PR label Apr 16, 2021
@pgayvallet pgayvallet enabled auto-merge (squash) April 16, 2021 08:42
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/security_solution/feature_controls·ts.apis SecuritySolution Endpoints feature controls APIs can be accessed user with global "all" privileges

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:05:52]           └-: SecuritySolution Endpoints
[00:05:52]             └-> "before all" hook in "SecuritySolution Endpoints"
[00:07:03]             └-: feature controls
[00:07:03]               └-> "before all" hook for "APIs can't be accessed by user with no privileges"
[00:07:03]               └-> APIs can't be accessed by user with no privileges
[00:07:03]                 └-> "before each" hook: global before each for "APIs can't be accessed by user with no privileges"
[00:07:03]                 │ debg creating role logstash_read
[00:07:03]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xxl-1618562574296286086] added role [logstash_read]
[00:07:03]                 │ debg creating user logstash_read
[00:07:03]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xxl-1618562574296286086] added user [logstash_read]
[00:07:03]                 │ debg created user logstash_read
[00:07:04]                 │ proc [kibana]   log   [09:44:25.924] [warning][api-authorization][plugins][security] User not authorized for "/api/solutions/security/graphql": responding with 403
[00:07:04]                 │ debg deleting role logstash_read
[00:07:04]                 │ debg deleting user logstash_read
[00:07:04]                 │ debg deleted user logstash_read
[00:07:04]                 └- ✓ pass  (355ms) "apis SecuritySolution Endpoints feature controls APIs can't be accessed by user with no privileges"
[00:07:04]               └-> APIs can be accessed user with global "all" privileges
[00:07:04]                 └-> "before each" hook: global before each for "APIs can be accessed user with global "all" privileges"
[00:07:04]                 │ debg creating role global_all
[00:07:04]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xxl-1618562574296286086] added role [global_all]
[00:07:04]                 │ debg creating user global_all
[00:07:04]                 │ info java.lang.OutOfMemoryError: Java heap space
[00:07:04]                 │      Dumping heap to data/java_pid127201.hprof ...
[00:07:05]                 │ info Heap dump file created [713279076 bytes in 1.389 secs]
[00:07:05]                 │ info [o.e.b.ElasticsearchUncaughtExceptionHandler] [kibana-ci-immutable-centos-tests-xxl-1618562574296286086] fatal error in thread [elasticsearch[kibana-ci-immutable-centos-tests-xxl-1618562574296286086][system_read][T#4]], exiting
[00:07:05]                 │      java.lang.OutOfMemoryError: Java heap space
[00:07:05]                 │      	at java.util.Arrays.copyOfRange(Arrays.java:3821) ~[?:?]
[00:07:05]                 │      	at java.lang.String.<init>(String.java:397) ~[?:?]
[00:07:05]                 │      	at java.util.Base64$Encoder.encodeToString(Base64.java:346) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.encodeResponse(AsyncTaskIndexService.java:478) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.updateResponse(AsyncTaskIndexService.java:215) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.onFinalResponse(TransportSubmitAsyncSearchAction.java:178) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.access$000(TransportSubmitAsyncSearchAction.java:50) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1.lambda$onResponse$1(TransportSubmitAsyncSearchAction.java:102) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1$$Lambda$7464/0x0000000801b99220.accept(Unknown Source) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.executeCompletionListeners(AsyncSearchTask.java:308) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.access$500(AsyncSearchTask.java:51) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:441) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:365) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$2(SecurityActionFilter.java:163) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter$$Lambda$5206/0x00000008018267d8.accept(Unknown Source) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:217) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.ActionListener$RunAfterActionListener.onResponse(ActionListener.java:339) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.sendSearchResponse(AbstractSearchAsyncAction.java:657) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.ExpandSearchPhase.run(ExpandSearchPhase.java:109) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:424) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:418) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.moveToNextPhase(FetchSearchPhase.java:219) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.lambda$innerRun$1(FetchSearchPhase.java:101) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$$Lambda$6748/0x0000000801aa2900.run(Unknown Source) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.action.search.CountedCollector.countDown(CountedCollector.java:40) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.CountedCollector$$Lambda$7338/0x0000000801b8eb50.run(Unknown Source) ~[?:?]
[00:07:05]                 │      	at org.elasticsearch.action.search.ArraySearchPhaseResults.consumeResult(ArraySearchPhaseResults.java:35) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.CountedCollector.onResult(CountedCollector.java:48) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:171) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:166) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │      	at org.elasticsearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:34) ~[elasticsearch-7.13.0-SNAPSHOT.jar:7.13.0-SNAPSHOT]
[00:07:05]                 │ERROR fatal error in thread [elasticsearch[kibana-ci-immutable-centos-tests-xxl-1618562574296286086][system_read][T#4]], exiting
[00:07:05]                 │      
[00:07:05]                 │ERROR java.lang.OutOfMemoryError: Java heap space
[00:07:05]                 │      	at java.base/java.util.Arrays.copyOfRange(Arrays.java:3821)
[00:07:05]                 │      	at java.base/java.lang.String.<init>(String.java:397)
[00:07:05]                 │      	at java.base/java.util.Base64$Encoder.encodeToString(Base64.java:346)
[00:07:05]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.encodeResponse(AsyncTaskIndexService.java:478)
[00:07:05]                 │      	at org.elasticsearch.xpack.core.async.AsyncTaskIndexService.updateResponse(AsyncTaskIndexService.java:215)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.onFinalResponse(TransportSubmitAsyncSearchAction.java:178)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction.access$000(TransportSubmitAsyncSearchAction.java:50)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1.lambda$onResponse$1(TransportSubmitAsyncSearchAction.java:102)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.TransportSubmitAsyncSearchAction$1$1$$Lambda$7464/0x0000000801b99220.accept(Unknown Source)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.executeCompletionListeners(AsyncSearchTask.java:308)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask.access$500(AsyncSearchTask.java:51)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:441)
[00:07:05]                 │      	at org.elasticsearch.xpack.search.AsyncSearchTask$Listener.onResponse(AsyncSearchTask.java:365)
[00:07:05]                 │      	at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:31)
[00:07:05]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$applyInternal$2(SecurityActionFilter.java:163)
[00:07:05]                 │      	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter$$Lambda$5206/0x00000008018267d8.accept(Unknown Source)
[00:07:05]                 │      	at org.elasticsearch.action.ActionListener$DelegatingFailureActionListener.onResponse(ActionListener.java:217)
[00:07:05]                 │      	at org.elasticsearch.action.ActionListener$RunAfterActionListener.onResponse(ActionListener.java:339)
[00:07:05]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.sendSearchResponse(AbstractSearchAsyncAction.java:657)
[00:07:05]                 │      	at org.elasticsearch.action.search.ExpandSearchPhase.run(ExpandSearchPhase.java:109)
[00:07:05]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:424)
[00:07:05]                 │      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:418)
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.moveToNextPhase(FetchSearchPhase.java:219)
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase.lambda$innerRun$1(FetchSearchPhase.java:101)
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$$Lambda$6748/0x0000000801aa2900.run(Unknown Source)
[00:07:05]                 │      	at org.elasticsearch.action.search.CountedCollector.countDown(CountedCollector.java:40)
[00:07:05]                 │      	at org.elasticsearch.action.search.CountedCollector$$Lambda$7338/0x0000000801b8eb50.run(Unknown Source)
[00:07:05]                 │      	at org.elasticsearch.action.search.ArraySearchPhaseResults.consumeResult(ArraySearchPhaseResults.java:35)
[00:07:05]                 │      	at org.elasticsearch.action.search.CountedCollector.onResult(CountedCollector.java:48)
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:171)
[00:07:05]                 │      	at org.elasticsearch.action.search.FetchSearchPhase$2.innerOnResponse(FetchSearchPhase.java:166)
[00:07:05]                 │      	at org.elasticsearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:34)
[00:07:05]                 │      
[00:07:06]                 │ proc [kibana]   log   [09:44:28.438] [error][elasticsearch] Request error, retrying
[00:07:06]                 │ proc [kibana] GET http://localhost:6182/_xpack?accept_enterprise=true => connect ECONNREFUSED 127.0.0.1:6182
[00:07:07]                 │ proc [kibana]   log   [09:44:28.898] [error][savedobjects-service] Unable to retrieve version information from Elasticsearch nodes.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.903] [warning][elasticsearch] Unable to revive connection: http://localhost:6182/
[00:07:07]                 │ proc [kibana]   log   [09:44:28.904] [warning][elasticsearch] No living connections
[00:07:07]                 │ proc [kibana]   log   [09:44:28.904] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:07:07]                 │ proc [kibana]   log   [09:44:28.912] [info][plugins][searchprofiler] You cannot use searchprofiler because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.912] [info][painlessLab][plugins] You cannot use painlessLab because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.919] [info][plugins][snapshotRestore] You cannot use snapshot_restore because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.920] [info][indexManagement][plugins] You cannot use index_management because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.920] [info][plugins][remoteClusters] You cannot use Remote Clusters because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.920] [info][plugins][rollup] You cannot use rollup because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.920] [info][indexLifecycleManagement][plugins] You cannot use index_lifecycle_management because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.921] [info][plugins][transform] You cannot use transform because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.921] [info][ingestPipelines][plugins] You cannot use ingest_pipelines because license information is not available at this time.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.934] [info][kibana-monitoring][monitoring][monitoring][plugins] Monitoring status upload endpoint is not enabled in Elasticsearch:Monitoring stats collection is stopped
[00:07:07]                 │ debg deleting role global_all
[00:07:07]                 │ proc [kibana]  error  [09:44:26.040]  Error: Internal Server Error
[00:07:07]                 │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-xpack-8/src/core/server/http/router/response_adapter.js:124:19)
[00:07:07]                 │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-xpack-8/src/core/server/http/router/response_adapter.js:78:19)
[00:07:07]                 │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-xpack-8/src/core/server/http/router/response_adapter.js:73:17)
[00:07:07]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-xpack-8/src/core/server/http/router/router.js:164:34)
[00:07:07]                 │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:07:07]                 │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:07:07]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-xpack-8/src/core/server/http/router/router.js:124:50)
[00:07:07]                 │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-xpack-8/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:07:07]                 │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-xpack-8/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:07:07]                 │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-xpack-8/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:07:07]                 │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-xpack-8/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:07:07]                 │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-xpack-8/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:07:07]                 │ proc [kibana]   log   [09:44:28.956] [warning][elasticsearch] Unable to revive connection: http://localhost:6182/
[00:07:07]                 │ proc [kibana]   log   [09:44:28.957] [warning][elasticsearch] No living connections
[00:07:07]                 │ proc [kibana]   log   [09:44:28.959] [error][error][esqueue][plugins][queue-worker][reporting] knk4b3zz2qut8bf735gb9s0k - job querying failed: Error: No Living connections
[00:07:07]                 │ proc [kibana]     at sendReqWithConnection (/dev/shm/workspace/kibana-build-xpack-8/node_modules/elasticsearch/src/lib/transport.js:266:15)
[00:07:07]                 │ proc [kibana]     at next (/dev/shm/workspace/kibana-build-xpack-8/node_modules/elasticsearch/src/lib/connection_pool.js:243:7)
[00:07:07]                 │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:75:11)
[00:07:07]                 │ proc [kibana]   log   [09:44:28.967] [warning][plugins][securitySolution] Unable to verify endpoint policies in line with license change: failed to fetch package policies: connect ECONNREFUSED 127.0.0.1:6182
[00:07:07]                 │ proc [kibana]   log   [09:44:28.969] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:07]                 │ proc [kibana]   log   [09:44:28.975] [warning][elasticsearch] Unable to revive connection: http://localhost:6182/
[00:07:07]                 │ proc [kibana]   log   [09:44:28.976] [warning][elasticsearch] No living connections
[00:07:07]                 │ proc [kibana]   log   [09:44:28.976] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:07:07]                 └- ✖ fail: apis SecuritySolution Endpoints feature controls APIs can be accessed user with global "all" privileges
[00:07:07]                 │      Error: Request failed with status code 503
[00:07:07]                 │       at createError (/dev/shm/workspace/parallel/8/kibana/node_modules/axios/lib/core/createError.js:16:15)
[00:07:07]                 │       at settle (/dev/shm/workspace/parallel/8/kibana/node_modules/axios/lib/core/settle.js:17:12)
[00:07:07]                 │       at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/8/kibana/node_modules/axios/lib/adapters/http.js:260:11)
[00:07:07]                 │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:07:07]                 │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:07:07]                 │ 
[00:07:07]                 │ 

Stack Trace

Error: Request failed with status code 503
    at createError (/dev/shm/workspace/parallel/8/kibana/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/dev/shm/workspace/parallel/8/kibana/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/8/kibana/node_modules/axios/lib/adapters/http.js:260:11)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  config: {
    url: 'http://elastic:changeme@localhost:6181/api/security/role/global_all',
    method: 'delete',
    headers: {
      Accept: 'application/json, text/plain, */*',
      'kbn-xsrf': 'kbn-client',
      'User-Agent': 'axios/0.21.1'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    paramsSerializer: [Function: paramsSerializer],
    timeout: 0,
    adapter: [Function: httpAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    httpsAgent: null,
    validateStatus: [Function: validateStatus],
    data: undefined
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      socket: [Function (anonymous)],
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      connect: [Function (anonymous)],
      error: [Function (anonymous)],
      timeout: [Function (anonymous)],
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    socket: Socket {
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'localhost',
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 6,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      parser: null,
      _httpMessage: [Circular *1],
      write: [Function: writeAfterFIN],
      [Symbol(async_id_symbol)]: 2305033,
      [Symbol(kHandle)]: null,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesRead)]: 474,
      [Symbol(kBytesWritten)]: 228,
      [Symbol(RequestTimeout)]: undefined
    },
    _header: 'DELETE /api/security/role/global_all HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'kbn-xsrf: kbn-client\r\n' +
      'User-Agent: axios/0.21.1\r\n' +
      'Host: localhost:6181\r\n' +
      'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: noopPendingOutput],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 80,
      protocol: 'http:',
      options: [Object],
      requests: {},
      sockets: {},
      freeSockets: {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'fifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 0,
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'DELETE',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/api/security/role/global_all',
    _ended: true,
    res: IncomingMessage {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      socket: [Socket],
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      headers: [Object],
      rawHeaders: [Array],
      trailers: {},
      rawTrailers: [],
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 503,
      statusMessage: 'Service Unavailable',
      client: [Socket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      responseUrl: 'http://elastic:changeme@localhost:6181/api/security/role/global_all',
      redirects: [],
      [Symbol(kCapture)]: false,
      [Symbol(RequestTimeout)]: undefined
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'localhost',
    protocol: 'http:',
    _redirectable: Writable {
      _writableState: [WritableState],
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 0,
      _requestBodyBuffers: [],
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'http://elastic:changeme@localhost:6181/api/security/role/global_all',
      [Symbol(kCapture)]: false
    },
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      'kbn-xsrf': [Array],
      'user-agent': [Array],
      host: [Array],
      authorization: [Array]
    }
  },
  response: {
    status: 503,
    statusText: 'Service Unavailable',
    headers: {
      'retry-after': '30',
      'kbn-name': 'kibana-ci-immutable-centos-tests-xxl-1618562574296286086',
      'kbn-license-sig': '3f2fbe2e7dffe9936f647deadcb18d812ffbb4f02c27cd5d8ed8069fef195573',
      'content-type': 'application/json; charset=utf-8',
      'cache-control': 'private, no-cache, no-store, must-revalidate',
      'content-length': '86',
      date: 'Fri, 16 Apr 2021 09:44:28 GMT',
      connection: 'close'
    },
    config: {
      url: 'http://elastic:changeme@localhost:6181/api/security/role/global_all',
      method: 'delete',
      headers: [Object],
      transformRequest: [Array],
      transformResponse: [Array],
      paramsSerializer: [Function: paramsSerializer],
      timeout: 0,
      adapter: [Function: httpAdapter],
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      httpsAgent: null,
      validateStatus: [Function: validateStatus],
      data: undefined
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      socket: [Socket],
      _header: 'DELETE /api/security/role/global_all HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'kbn-xsrf: kbn-client\r\n' +
        'User-Agent: axios/0.21.1\r\n' +
        'Host: localhost:6181\r\n' +
        'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: noopPendingOutput],
      agent: [Agent],
      socketPath: undefined,
      method: 'DELETE',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/api/security/role/global_all',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'localhost',
      protocol: 'http:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    data: {
      statusCode: 503,
      error: 'Service Unavailable',
      message: 'License is not available.'
    }
  },
  isAxiosError: true,
  toJSON: [Function: toJSON]
}

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 381.1KB 381.2KB +92.0B
Unknown metric groups

API count

id before after diff
core 2168 2172 +4

API count missing comments

id before after diff
core 989 991 +2

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

@pgayvallet pgayvallet merged commit ad6dc34 into elastic:7.x Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants