Skip to content

Speed up UnicastZenPingTests#21874

Merged
jasontedor merged 1 commit intoelastic:masterfrom
jasontedor:unicast-zen-ping-tests-are-too-slow
Nov 30, 2016
Merged

Speed up UnicastZenPingTests#21874
jasontedor merged 1 commit intoelastic:masterfrom
jasontedor:unicast-zen-ping-tests-are-too-slow

Conversation

@jasontedor
Copy link
Copy Markdown
Member

These tests using ping timeouts on the order of seconds, but this is
unnecessary since all the sockets are within the same JVM it really
should not take that long.

These tests using ping timeouts on the order of seconds, but this is
unnecessary since all the sockets are within the same JVM it really
should not take that long.
@jasontedor jasontedor added :Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure >non-issue review >test Issues or PRs that are addressing/adding tests v5.2.0 v6.0.0-alpha1 labels Nov 29, 2016
@jasontedor
Copy link
Copy Markdown
Member Author

On my laptop, this reduces the runtime of these tests from 11.5 seconds to 1.5 seconds.

@rjernst
Copy link
Copy Markdown
Member

rjernst commented Nov 30, 2016

LGTM

@jasontedor jasontedor merged commit 072007c into elastic:master Nov 30, 2016
jasontedor added a commit that referenced this pull request Nov 30, 2016
These tests using ping timeouts on the order of seconds, but this is
unnecessary since all the sockets are within the same JVM it really
should not take that long.

Relates #21874
@jasontedor
Copy link
Copy Markdown
Member Author

Thanks @rjernst.

@jasontedor jasontedor deleted the unicast-zen-ping-tests-are-too-slow branch November 30, 2016 04:28
@jpountz
Copy link
Copy Markdown
Contributor

jpountz commented Nov 30, 2016

Could this change be related to the recent UnicastPingTests.testSimplePings that we are seeing?

@jasontedor
Copy link
Copy Markdown
Member Author

@jpountz Indeed it is. I opened #21894 which contains an explanation of the situation.

jasontedor added a commit that referenced this pull request Nov 30, 2016
These tests using ping timeouts on the order of seconds, but this is
unnecessary since all the sockets are within the same JVM it really
should not take that long.

Relates #21874
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure >non-issue >test Issues or PRs that are addressing/adding tests v5.2.0 v6.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants