Skip to content

[Ingest Manager] Fix agent tests and short polling timeout#79442

Merged
nchaulet merged 2 commits intoelastic:masterfrom
nchaulet:fix-agent-flow-tests-75241
Oct 5, 2020
Merged

[Ingest Manager] Fix agent tests and short polling timeout#79442
nchaulet merged 2 commits intoelastic:masterfrom
nchaulet:fix-agent-flow-tests-75241

Conversation

@nchaulet
Copy link
Copy Markdown
Member

@nchaulet nchaulet commented Oct 5, 2020

Summary

Resolve #75241

I introduced a margin of 20s when we set the timeout for the agent checkin long polling call, this is not working if the timeout is configured with a value lower than 20s, and this is the case for the tests.

This PR fix it by removing the socket timeout, and not applying the margin if the long polling duration is lower than 20s.

@nchaulet nchaulet added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 Team:Fleet Team label for Observability Data Collection Fleet team Ingest Management:beta2 labels Oct 5, 2020
@nchaulet nchaulet requested review from a team and jen-huang October 5, 2020 12:14
@nchaulet nchaulet self-assigned this Oct 5, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@jen-huang
Copy link
Copy Markdown
Contributor

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran the single test locally and it passes. Thanks for fixing!

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@nchaulet nchaulet merged commit 28278ab into elastic:master Oct 5, 2020
@nchaulet nchaulet deleted the fix-agent-flow-tests-75241 branch October 5, 2020 17:10
nchaulet added a commit to nchaulet/kibana that referenced this pull request Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 v8.0.0

Projects

None yet

4 participants