Repository: spark
Updated Branches:
  refs/heads/branch-1.3 316a4bb54 -> 5d9278a22


[SPARK-5574] use given name prefix in dir

https://issues.apache.org/jira/browse/SPARK-5574

very minor, doesn't effect external behavior at all.
Note that after this change, some of these dirs no longer will have "spark" in 
the name at all.  I could change those locations that do pass in a name prefix 
to also include "spark", eg. "blockmgr" -> "spark-blockmgr"

Author: Imran Rashid <[email protected]>

Closes #4344 from squito/SPARK-5574 and squashes the following commits:

33a84fe [Imran Rashid] use given name prefix in dir

(cherry picked from commit 5aa0f219d1f8e8d3bb083dd547532ebb72ba7a15)
Signed-off-by: Reynold Xin <[email protected]>


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

Branch: refs/heads/branch-1.3
Commit: 5d9278a22969bfc554787233e56464d0c45e931e
Parents: 316a4bb
Author: Imran Rashid <[email protected]>
Authored: Wed Feb 4 01:02:20 2015 -0800
Committer: Reynold Xin <[email protected]>
Committed: Wed Feb 4 01:02:26 2015 -0800

----------------------------------------------------------------------
 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/5d9278a2/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 e9f2aed..3c8a0e4 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -279,7 +279,7 @@ private[spark] object Utils extends Logging {
           maxAttempts + " attempts!")
       }
       try {
-        dir = new File(root, "spark-" + UUID.randomUUID.toString)
+        dir = new File(root, namePrefix + "-" + UUID.randomUUID.toString)
         if (dir.exists() || !dir.mkdirs()) {
           dir = null
         } else {


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

Reply via email to