Skip to content

Conversation

@harishreedharan
Copy link
Contributor

No description provided.

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18085/consoleFull

@harishreedharan harishreedharan changed the title [STREAMING] Find free ports to use before attempting to create Flume Sin... [HOTFIX][STREAMING] Find free ports to use before attempting to create Flume Sin... Aug 7, 2014
Copy link
Contributor

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)

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18087/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA results for PR 1820:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18085/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA results for PR 1820:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18087/consoleFull

@tdas
Copy link
Contributor

tdas commented Aug 7, 2014

[info] - flume polling test multiple hosts *** FAILED ***
[info] 0 did not equal 1000 (FlumePollingStreamSuite.scala:184)

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.

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18095/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA results for PR 1820:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18095/consoleFull

@harishreedharan
Copy link
Contributor Author

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.
@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18136/consoleFull

Copy link
Contributor

Choose a reason for hiding this comment

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

Not used anymore?

Copy link
Contributor

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).

@vanzin
Copy link
Contributor

vanzin commented Aug 7, 2014

Yay for letting netty do the work. Probably should update PR title / description.

@harishreedharan harishreedharan changed the title [HOTFIX][STREAMING] Find free ports to use before attempting to create Flume Sin... [HOTFIX][STREAMING] Allow the JVM/Netty to decide which port to bind to in Flume Polling Tests. Aug 7, 2014
Copy link
Contributor

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(...))`

?

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA results for PR 1820:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18136/consoleFull

@harishreedharan
Copy link
Contributor Author

The relevant tests passed. Looks like spark-submit failed again.

@harishreedharan
Copy link
Contributor Author

[info] *** 3 TESTS FAILED ***
[error] Failed: Total 817, Failed 3, Errors 0, Passed 814, Ignored 6
[error] Failed tests:
[error] org.apache.spark.DriverSuite
[error] org.apache.spark.deploy.SparkSubmitSuite
error sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 2381 s, completed Aug 6, 2014 8:19:53 PM

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18138/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA results for PR 1820:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18138/consoleFull

@andrewor14
Copy link
Contributor

Yeah we really need to fix those 3 tests up soon.

@SparkQA
Copy link

SparkQA commented Aug 7, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18156/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 8, 2014

QA results for PR 1820:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18156/consoleFull

@harishreedharan
Copy link
Contributor Author

Last test failure was the DriverSuite again.

@SparkQA
Copy link

SparkQA commented Aug 8, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18164/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 8, 2014

QA results for PR 1820:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18164/consoleFull

@harishreedharan
Copy link
Contributor Author

Can a committer please re-run the tests. Failed due to
Failed to download pep8.py from "https://raw.githubusercontent.com/jcrocholl/pep8/1.5.7/pep8.py".

@andrewor14
Copy link
Contributor

@harishreedharan I think you can also say "test this please" to trigger the test.

test this please

Copy link
Contributor

Choose a reason for hiding this comment

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

not used

@andrewor14
Copy link
Contributor

1 minor comment and this LGTM - if the tests pass

@harishreedharan
Copy link
Contributor Author

Jenkins, test this please

@SparkQA
Copy link

SparkQA commented Aug 8, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18196/consoleFull

@andrewor14
Copy link
Contributor

test this please

@harishreedharan
Copy link
Contributor Author

Jenkins, test this please

@SparkQA
Copy link

SparkQA commented Aug 9, 2014

QA tests have started for PR 1820. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18235/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 9, 2014

QA results for PR 1820:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18235/consoleFull

@harishreedharan
Copy link
Contributor Author

Can one of the committers please merge this? It would be nice to have this pulled in

@tdas
Copy link
Contributor

tdas commented Aug 18, 2014

Yeah, merging this. LGTM.

@asfgit asfgit closed this in 95470a0 Aug 18, 2014
tdas pushed a commit to tdas/spark that referenced this pull request Aug 21, 2014
…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
asfgit pushed a commit that referenced this pull request Aug 21, 2014
…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
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…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
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.

5 participants