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

Failing test: Jest Integration Tests.src/core/server/http/integration_tests - Options timeout idleSocket should timeout if payload sending has too long of an idle period #82002

Closed
kibanamachine opened this issue Oct 29, 2020 · 5 comments · Fixed by #162947
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 29, 2020

A test failed on a tracked branch

Error: expect(received).rejects.toThrow(expected)

Expected substring: "socket hang up"
Received message:   "read ECONNRESET"


    at Object.toThrow (/dev/shm/workspace/kibana/node_modules/expect/build/index.js:241:20)
    at Object.it (/dev/shm/workspace/parallel/3/kibana/src/core/server/http/integration_tests/router.test.ts:417:38)
    at process._tickCallback (internal/process/next_tick.js:68:7)

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Oct 29, 2020
@jbudz
Copy link
Member

jbudz commented Oct 29, 2020

skipped
master: 915997e
7.x: 21286e7

@jbudz jbudz added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Oct 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@pgayvallet
Copy link
Contributor

cc @kobelb (as the test is from #73730)
@watson may this be related to HAPI upgrade in any way?

@watson
Copy link
Contributor

watson commented Nov 4, 2020

@pgayvallet The hapi upgrade wasn't merged into master and 7.x until two days ago, so this wouldn't be related.

@gsoldevila gsoldevila self-assigned this Aug 2, 2023
@afharo afharo linked a pull request Oct 26, 2023 that will close this issue
e40pud pushed a commit to e40pud/kibana that referenced this issue Nov 22, 2023
### Summary

Address elastic#82002 and
elastic#75440

I think I found a breakthrough for this flaky behavior. I run the
integration test 800x locally, with different settings:

Adjusting both the delayed emission (send 1 char at a time), and the
socket idle timeout to have exacly the same value (e.g. `10 millis`), I
managed to get the `ECONNRESET` 100% of the times.

Thus, IIUC the ECONNRESET happens when the client tries to send a
character over the socket and at the same time the server responds with
the idle timeout.

Adjusting the values so that the delay between character emissions is
significantly larger than the idle timeout, e.g. 20 vs 5, I get `socket
hang up` 100% of the times.

Flaky Test Runner Pipeline - 300x 🟢
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants