Skip to content

Commit

Permalink
Fix style test fail + remove verbose test message regarding broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Mar 31, 2014
1 parent 634a097 commit 7ed72fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ private[spark] object HttpBroadcast extends Logging {

private def deleteBroadcastFile(file: File) {
try {
if (!file.exists) {
logWarning("Broadcast file to be deleted does not exist: %s".format(file))
} else if (file.delete()) {
logInfo("Deleted broadcast file: %s".format(file))
} else {
logWarning("Could not delete broadcast file: %s".format(file))
if (file.exists) {
if (file.delete()) {
logInfo("Deleted broadcast file: %s".format(file))
} else {
logWarning("Could not delete broadcast file: %s".format(file))
}
}
} catch {
case e: Exception =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private[spark] class BlockManager(
}
}

/** Get the BlockStatus for the block identified by the given ID, if it exists.*/
/** Get the BlockStatus for the block identified by the given ID, if it exists. */
def getStatus(blockId: BlockId): Option[BlockStatus] = {
blockInfo.get(blockId).map { info =>
val memSize = if (memoryStore.contains(blockId)) memoryStore.getSize(blockId) else 0L
Expand Down

0 comments on commit 7ed72fb

Please sign in to comment.