-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[HOTFIX][STREAMING] Allow the JVM/Netty to decide which port to bind to in Flume Polling Tests. #1820
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
Conversation
…Sink in Flume Polling Suite
|
QA tests have started for PR 1820. This patch merges cleanly. |
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.
Could you add a comment that describes the potential race condition that could happen? (i.e. right after you close the socket some other process can grab the port)
|
QA tests have started for PR 1820. This patch merges cleanly. |
|
QA results for PR 1820: |
|
QA results for PR 1820: |
|
[info] - flume polling test multiple hosts *** FAILED *** It might be that your two one-after-another calls to findFreePort will return the same port, and cause binding exception in one of them. So you have to use it in such a way where you findFreePort, use it, then call findFreePort another time. |
|
QA tests have started for PR 1820. This patch merges cleanly. |
|
QA results for PR 1820: |
|
Actually, the Flume Polling Suite passed this time. The spark-submit tests seems to have failed. |
…o. Leaving findFreePort as is, if other tests want to use it at some point.
|
QA tests have started for PR 1820. This patch merges cleanly. |
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.
Not used anymore?
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.
Yeah, it might be a good idea to remove this if we don't use it anymore, since this is somewhat hacky and is subject to a race condition. We can always add it back later if we find a need for it (my hopes is that we won't).
|
Yay for letting netty do the work. Probably should update PR title / description. |
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.
How about
serverOpt
.map(_.getPort)
.getOrElse(throw new RuntimeException(...))`
?
|
QA results for PR 1820: |
|
The relevant tests passed. Looks like spark-submit failed again. |
|
[info] *** 3 TESTS FAILED *** |
|
QA tests have started for PR 1820. This patch merges cleanly. |
|
QA results for PR 1820: |
|
Yeah we really need to fix those 3 tests up soon. |
|
QA tests have started for PR 1820. This patch merges cleanly. |
|
QA results for PR 1820: |
|
Last test failure was the DriverSuite again. |
|
QA tests have started for PR 1820. This patch merges cleanly. |
|
QA results for PR 1820: |
|
Can a committer please re-run the tests. Failed due to |
|
@harishreedharan I think you can also say "test this please" to trigger the test. test this please |
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.
not used
|
1 minor comment and this LGTM - if the tests pass |
|
Jenkins, test this please |
|
QA tests have started for PR 1820. This patch merges cleanly. |
|
test this please |
|
Jenkins, test this please |
|
QA tests have started for PR 1820. This patch merges cleanly. |
|
QA results for PR 1820: |
|
Can one of the committers please merge this? It would be nice to have this pulled in |
|
Yeah, merging this. LGTM. |
…to in Flume Polling Tests. Author: Hari Shreedharan <harishreedharan@gmail.com> Closes apache#1820 from harishreedharan/use-free-ports and squashes the following commits: b939067 [Hari Shreedharan] Remove unused import. 67856a8 [Hari Shreedharan] Remove findFreePort. 0ea51d1 [Hari Shreedharan] Make some changes to getPort to use map on the serverOpt. 1fb0283 [Hari Shreedharan] Merge branch 'master' of https://github.com/apache/spark into use-free-ports b351651 [Hari Shreedharan] Allow Netty to choose port, and query it to decide the port to bind to. Leaving findFreePort as is, if other tests want to use it at some point. e6c9620 [Hari Shreedharan] Making sure the second sink uses the correct port. 11c340d [Hari Shreedharan] Add info about race condition to scaladoc. e89d135 [Hari Shreedharan] Adding Scaladoc. 6013bb0 [Hari Shreedharan] [STREAMING] Find free ports to use before attempting to create Flume Sink in Flume Polling Suite
…to in Flume Polling Tests. Author: Hari Shreedharan <harishreedharan@gmail.com> Closes #1820 from harishreedharan/use-free-ports and squashes the following commits: b939067 [Hari Shreedharan] Remove unused import. 67856a8 [Hari Shreedharan] Remove findFreePort. 0ea51d1 [Hari Shreedharan] Make some changes to getPort to use map on the serverOpt. 1fb0283 [Hari Shreedharan] Merge branch 'master' of https://github.com/apache/spark into use-free-ports b351651 [Hari Shreedharan] Allow Netty to choose port, and query it to decide the port to bind to. Leaving findFreePort as is, if other tests want to use it at some point. e6c9620 [Hari Shreedharan] Making sure the second sink uses the correct port. 11c340d [Hari Shreedharan] Add info about race condition to scaladoc. e89d135 [Hari Shreedharan] Adding Scaladoc. 6013bb0 [Hari Shreedharan] [STREAMING] Find free ports to use before attempting to create Flume Sink in Flume Polling Suite
…to in Flume Polling Tests. Author: Hari Shreedharan <harishreedharan@gmail.com> Closes apache#1820 from harishreedharan/use-free-ports and squashes the following commits: b939067 [Hari Shreedharan] Remove unused import. 67856a8 [Hari Shreedharan] Remove findFreePort. 0ea51d1 [Hari Shreedharan] Make some changes to getPort to use map on the serverOpt. 1fb0283 [Hari Shreedharan] Merge branch 'master' of https://github.com/apache/spark into use-free-ports b351651 [Hari Shreedharan] Allow Netty to choose port, and query it to decide the port to bind to. Leaving findFreePort as is, if other tests want to use it at some point. e6c9620 [Hari Shreedharan] Making sure the second sink uses the correct port. 11c340d [Hari Shreedharan] Add info about race condition to scaladoc. e89d135 [Hari Shreedharan] Adding Scaladoc. 6013bb0 [Hari Shreedharan] [STREAMING] Find free ports to use before attempting to create Flume Sink in Flume Polling Suite
No description provided.