-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
TESTS: Set SO_LINGER = 0 for MockNioTransport #32560
Conversation
original-brownbear
commented
Aug 1, 2018
- Prevents lingering sockets in TIME_WAIT piling up during test runs and leading to port collisions that manifest as timeouts
- Fixes MinimumMasterNodesIT fails due to connection timeout to shut-down node #32552
* Prevents lingering sockets in TIME_WAIT piling up during test runs and leading to port collisions that manifest as timeouts * Fixes elastic#32552
Pinging @elastic/es-core-infra |
@tbrooks8 maybe take a look here when you have a sec. I think this is just a case of lingering connections piling up. If I run those tests without this change end up with 300+ lingering connections, with this change it's 4. |
@jasontedor @tbrooks8 can one of you take a look here (this is the one we discussed during the last test triage meeting). |
Can we do this for the MockTcpTransport too? I'm not sure why we would do it for only the test nio transport and not the blocking test transport. Additionally, are we still have the random timeout issue? A while back I merged #32620 which reduced the localhost connections used from 26 to 6 for the mock nio transport. |
@tbrooks8 sure the blocking implementation could be changed as well, will do in a bit :)
Fair point, I guess the issue is pretty much less likely by a factor of 6/26 now. This change basically makes the factor |
@tbrooks8 done, turned off linger for the blocking mock transport as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@tbrooks8 thanks! |
* master: (46 commits) Fixing assertions in integration test (elastic#33833) [CCR] Rename idle_shard_retry_delay to poll_timout in auto follow patterns (elastic#33821) HLRC: Delete ML calendar (elastic#33775) Move DocsStats into Engine (elastic#33835) [Docs] Clarify accessing Date methods in painless (elastic#33560) add elasticsearch-shard tool (elastic#32281) Cut over to unwrap segment reader (elastic#33843) SQL: Fix issue with options for QUERY() and MATCH(). (elastic#33828) Emphasize that filesystem-level backups don't work (elastic#33102) Use the global doc id to generate a random score (elastic#33599) Add minimal sanity checks to custom/scripted similarities. (elastic#33564) Profiler: Don’t profile NEXTDOC for ConstantScoreQuery. (elastic#33196) [CCR] Change FollowIndexAction.Request class to be more user friendly (elastic#33810) SQL: day and month name functions tests locale providers enforcement (elastic#33653) TESTS: Set SO_LINGER = 0 for MockNioTransport (elastic#32560) Test: Relax jarhell gradle test (elastic#33787) [CCR] Fail with a descriptive error if leader index does not exist (elastic#33797) Add ES version 6.4.2 (elastic#33831) MINOR: Remove Some Dead Code in Scripting (elastic#33800) Ensure realtime `_get` and `_termvectors` don't run on the network thread (elastic#33814) ...