Skip to content

[7.7] [TSVB] Fixing memory leak (#64918)#65061

Merged
legrego merged 1 commit intoelastic:7.7from
legrego:backport/7.7/pr-64918
May 4, 2020
Merged

[7.7] [TSVB] Fixing memory leak (#64918)#65061
legrego merged 1 commit intoelastic:7.7from
legrego:backport/7.7/pr-64918

Conversation

@legrego
Copy link
Copy Markdown
Member

@legrego legrego commented May 4, 2020

Backports the following commits to 7.7:

@legrego legrego added the backport This PR is a backport of another PR label May 4, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Example plugin functional tests.test/examples/embeddables/adding_children·ts.embeddable explorer creating and adding children Can create a new child

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:37]         └-: embeddable explorer
[00:00:37]           └-> "before all" hook
[00:00:37]           └-> "before all" hook
[00:00:37]             │ debg navigating to settings url: http://localhost:6111/app/kibana#/management
[00:00:37]             │ debg navigate to: http://localhost:6111/app/kibana#/management
[00:00:37]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1588591193228636313] [.kibana] creating index, cause [auto(bulk api)], templates [], shards [1]/[1], mappings []
[00:00:38]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1588591193228636313] [.kibana/TQUnXLT2TvOblOlmVBtinA] create_mapping [_doc]
[00:00:39]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1588591193228636313] [.kibana/TQUnXLT2TvOblOlmVBtinA] update_mapping [_doc]
[00:00:39]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1588591193228636313] [.kibana/TQUnXLT2TvOblOlmVBtinA] update_mapping [_doc]
[00:00:39]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 984:16 "Reporting application changed to undefined"
[00:00:39]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 984:16 "Reporting application changed to undefined"
[00:00:39]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 984:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:00:39]             │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1588593342134#/management 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:00:39]             │
[00:00:39]             │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:39]             │ debg ... sleep(700) start
[00:00:39]             │ debg ... sleep(700) end
[00:00:39]             │ debg returned from get, calling refresh
[00:00:40]             │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1588593342134#/management 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:00:40]             │
[00:00:40]             │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:40]             │ debg currentUrl = http://localhost:6111/app/kibana#/management
[00:00:40]             │          appUrl = http://localhost:6111/app/kibana#/management
[00:00:40]             │ debg TestSubjects.find(kibanaChrome)
[00:00:40]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:42]             │ debg TestSubjects.find(kibanaChrome)
[00:00:42]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:42]             │ debg browser[INFO] http://localhost:6111/bundles/plugin/testbed/testbed.plugin.js 171:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:00:42]             │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106452 "INFO: 2020-05-04T11:55:45Z
[00:00:42]             │        Adding connection to http://localhost:6111/elasticsearch
[00:00:42]             │
[00:00:42]             │      "
[00:00:42]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 984:16 "Reporting user-agent."
[00:00:42]             │ debg browser[INFO] http://localhost:6111/bundles/plugin/testbed/testbed.plugin.js 179:12 "Testbed plugin started"
[00:00:42]             │ debg browser[DEBUG] http://localhost:6111/bundles/plugin/usageCollection/usageCollection.plugin.js 984:16 "Reporting application changed to management"
[00:00:42]             │ debg ... sleep(501) start
[00:00:43]             │ debg ... sleep(501) end
[00:00:43]             │ debg in navigateTo url = http://localhost:6111/app/kibana#/management?_g=()
[00:00:43]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:43]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:45]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:46]             │ debg click "Embeddable explorer" app link
[00:00:46]             │ debg TestSubjects.find(navDrawer)
[00:00:46]             │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:00:50]           └-: creating and adding children
[00:00:50]             └-> "before all" hook
[00:00:50]             └-> "before all" hook
[00:00:50]               │ debg TestSubjects.click(embeddablePanelExamplae)
[00:00:50]               │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelExamplae"]') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelExamplae"]') with timeout=10000
[00:00:50]             └-> Can create a new child
[00:00:50]               └-> "before each" hook: global before each
[00:00:50]               │ debg TestSubjects.click(embeddablePanelToggleMenuIcon)
[00:00:50]               │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=10000
[00:00:50]               │ debg TestSubjects.click(embeddablePanelAction-ACTION_ADD_PANEL)
[00:00:50]               │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelAction-ACTION_ADD_PANEL"]') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelAction-ACTION_ADD_PANEL"]') with timeout=10000
[00:00:50]               │ debg TestSubjects.click(createNew)
[00:00:50]               │ debg Find.clickByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="createNew"]') with timeout=10000
[00:00:51]               │ debg TestSubjects.click(createNew-TODO_EMBEDDABLE)
[00:00:51]               │ debg Find.clickByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:00:51]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:01:01]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:01:01]               │      Wait timed out after 10027ms
[00:01:01]               │ERROR browser[SEVERE] http://localhost:6111/api/saved_objects/_find?default_search_operator=AND&fields=title&page=1&per_page=1000&search_fields=title%5E3&search_fields=description& - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:01:01]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 8254:18 "Detected an unhandled Promise rejection.
[00:01:01]               │      Error: Bad Request"
[00:01:01]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 9056:12 
[00:01:01]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:01:11]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:01:11]               │      Wait timed out after 10013ms
[00:01:12]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:01:22]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:01:22]               │      Wait timed out after 10034ms
[00:01:22]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:01:32]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:01:32]               │      Wait timed out after 10032ms
[00:01:33]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:01:43]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:01:43]               │      Wait timed out after 10006ms
[00:01:43]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:01:53]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:01:53]               │      Wait timed out after 10034ms
[00:01:54]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:02:04]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:02:04]               │      Wait timed out after 10012ms
[00:02:04]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:02:14]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:02:14]               │      Wait timed out after 10005ms
[00:02:15]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:02:25]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:02:25]               │      Wait timed out after 10046ms
[00:02:25]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:02:35]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:02:35]               │      Wait timed out after 10039ms
[00:02:36]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:02:46]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:02:46]               │      Wait timed out after 10013ms
[00:02:46]               │ debg Find.findByCssSelector('[data-test-subj="createNew-TODO_EMBEDDABLE"]') with timeout=10000
[00:02:56]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
[00:02:56]               │      Wait timed out after 10047ms
[00:02:57]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/embeddable explorer creating and adding children Can create a new child.png"
[00:02:57]               │ info Current URL is: http://localhost:6111/app/embeddableExplorer/embeddablePanelExamplae
[00:02:57]               │ info Saving page source to: /dev/shm/workspace/kibana/test/examples/failure_debug/html/embeddable explorer creating and adding children Can create a new child.html
[00:02:57]               └- ✖ fail: "embeddable explorer creating and adding children Can create a new child"
[00:02:57]               │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNew-TODO_EMBEDDABLE"])
Wait timed out after 10047ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)

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

@legrego legrego merged commit 5cba18e into elastic:7.7 May 4, 2020
@legrego legrego deleted the backport/7.7/pr-64918 branch May 4, 2020 13:29
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