Skip to content

Commit

Permalink
[SPARK-5574] use given name prefix in dir
Browse files Browse the repository at this point in the history
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 apache#4344 from squito/SPARK-5574 and squashes the following commits:

33a84fe [Imran Rashid] use given name prefix in dir
  • Loading branch information
squito authored and rxin committed Feb 4, 2015
1 parent a74cbbf commit 5aa0f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5aa0f21

Please sign in to comment.