Repository: spark
Updated Branches:
  refs/heads/master a31f4ff22 -> 4e79970d3


Revert "[SPARK-3755][Core] Do not bind port 1 - 1024 to server in spark"

This reverts commit 6390aae4eacbabfb1c53fb828b824f6a6518beff.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/4e79970d
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/4e79970d
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/4e79970d

Branch: refs/heads/master
Commit: 4e79970d32f9b917590dba8319bdc677e3bdd63a
Parents: a31f4ff
Author: Patrick Wendell <[email protected]>
Authored: Wed Oct 1 16:03:00 2014 -0700
Committer: Patrick Wendell <[email protected]>
Committed: Wed Oct 1 16:03:00 2014 -0700

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/util/Utils.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/4e79970d/core/src/main/scala/org/apache/spark/util/Utils.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala 
b/core/src/main/scala/org/apache/spark/util/Utils.scala
index e5b83c0..b3025c6 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -1439,7 +1439,7 @@ private[spark] object Utils extends Logging {
     val serviceString = if (serviceName.isEmpty) "" else s" '$serviceName'"
     for (offset <- 0 to maxRetries) {
       // Do not increment port if startPort is 0, which is treated as a 
special port
-      val tryPort = if (startPort == 0) startPort else (startPort + offset) % 
(65536 - 1024) + 1024
+      val tryPort = if (startPort == 0) startPort else (startPort + offset) % 
65536
       try {
         val (service, port) = startService(tryPort)
         logInfo(s"Successfully started service$serviceString on port $port.")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to