aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMridul Muralidharan <mridul@gmail.com>2013-05-02 07:41:33 +0530
committerMridul Muralidharan <mridul@gmail.com>2013-05-02 07:41:33 +0530
commitdfde9ce9dde0a151d42f7aecb826b40a4c98b459 (patch)
tree989895cb25254eed52a3872ffe4e2ea1d9e7c401
parent1b5aaeadc72ad5197c00897c41f670ea241d0235 (diff)
downloadspark-dfde9ce9dde0a151d42f7aecb826b40a4c98b459.tar.gz
spark-dfde9ce9dde0a151d42f7aecb826b40a4c98b459.tar.bz2
spark-dfde9ce9dde0a151d42f7aecb826b40a4c98b459.zip
comment out debug versions of checkHost, etc from Utils - which were used to test
-rw-r--r--core/src/main/scala/spark/Utils.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/scala/spark/Utils.scala b/core/src/main/scala/spark/Utils.scala
index 0e348f8189..c1495d5317 100644
--- a/core/src/main/scala/spark/Utils.scala
+++ b/core/src/main/scala/spark/Utils.scala
@@ -335,6 +335,7 @@ private object Utils extends Logging {
retval
}
+/*
// Used by DEBUG code : remove when all testing done
private val ipPattern = Pattern.compile("^[0-9]+(\\.[0-9]+)*$")
def checkHost(host: String, message: String = "") {
@@ -363,8 +364,8 @@ private object Utils extends Logging {
// temp code for debug
System.exit(-1)
}
+*/
-/*
// Once testing is complete in various modes, replace with this ?
def checkHost(host: String, message: String = "") {}
def checkHostPort(hostPort: String, message: String = "") {}
@@ -373,7 +374,6 @@ private object Utils extends Logging {
def logErrorWithStack(msg: String) {
try { throw new Exception } catch { case ex: Exception => { logError(msg, ex) } }
}
-*/
def getUserNameFromEnvironment(): String = {
SparkHadoopUtil.getUserNameFromEnvironment