GitHub user d2r opened a pull request:
https://github.com/apache/spark/pull/17500
[SPARK-20181] [CORE] tries to bind the port to avoid jetty noise
## What changes were proposed in this pull request?
Try to bind the desired port and release it before entering Jetty code, so
there is less likelihood of hitting the BindException and thus seeing the
warning log statement.
## How was this patch tested?
Manual Testing:
Before the change:
1. Launch spark-shell, configured to bind to port 4040 => observed
successful bind to 4040
2. Launch spark-shell again, same config => WARN log & stack trace appear
similar to Jira description, and port successfully binds to 4041.
After the change:
Repeat 1. and 2. above => No WARN log appears, and port successfully binds
to 4041
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/d2r/spark
spark-20181-supress-bindexception-stack
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17500.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17500
----
commit 180281fd80d9a581107d4a57535c26c3a01b2eca
Author: Derek Dagit <[email protected]>
Date: 2017-03-31T21:11:16Z
tries to bind the port to avoid jetty noise
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]