Skip to content

Conversation

@andrewor14
Copy link
Contributor

The test "jetty selects different port under contention" is flaky.

If another process binds to 4040 before the test starts, then the first server we start there will fail, and the subsequent servers we start thereafter may successfully bind to 4040 if it was released between the servers starting. Instead, we should just let Java find a random free port for us and hold onto it for the duration of the test.

@andrewor14
Copy link
Contributor Author

@pwendell

@SparkQA
Copy link

SparkQA commented Sep 16, 2014

QA tests have started for PR 2418 at commit 0cd4974.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 16, 2014

QA tests have finished for PR 2418 at commit 0cd4974.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class NonASCIICharacterChecker extends ScalariformChecker

@andrewor14
Copy link
Contributor Author

Got a verbal LGTM from @pwendell IRL. Merging into master and 1.1.

asfgit pushed a commit that referenced this pull request Sep 16, 2014
The test "jetty selects different port under contention" is flaky.

If another process binds to 4040 before the test starts, then the first server we start there will fail, and the subsequent servers we start thereafter may successfully bind to 4040 if it was released between the servers starting. Instead, we should just let Java find a random free port for us and hold onto it for the duration of the test.

Author: Andrew Or <[email protected]>

Closes #2418 from andrewor14/fix-port-contention and squashes the following commits:

0cd4974 [Andrew Or] Stop them servers
a7071fe [Andrew Or] Pick random port instead of 4040

(cherry picked from commit 0a7091e)
Signed-off-by: Andrew Or <[email protected]>
@asfgit asfgit closed this in 0a7091e Sep 16, 2014
@andrewor14 andrewor14 deleted the fix-port-contention branch September 17, 2014 01:22
markhamstra pushed a commit to markhamstra/spark that referenced this pull request Sep 19, 2014
The test "jetty selects different port under contention" is flaky.

If another process binds to 4040 before the test starts, then the first server we start there will fail, and the subsequent servers we start thereafter may successfully bind to 4040 if it was released between the servers starting. Instead, we should just let Java find a random free port for us and hold onto it for the duration of the test.

Author: Andrew Or <[email protected]>

Closes apache#2418 from andrewor14/fix-port-contention and squashes the following commits:

0cd4974 [Andrew Or] Stop them servers
a7071fe [Andrew Or] Pick random port instead of 4040

(cherry picked from commit 0a7091e)
Signed-off-by: Andrew Or <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants