Skip to content

Commit

Permalink
fix small bug for code style
Browse files Browse the repository at this point in the history
  • Loading branch information
witgo committed May 14, 2014
1 parent 0a428cf commit 062c182
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, actorSystem: A
val serializedTask = ser.serialize(task)
if (serializedTask.limit >= akkaFrameSize - 1024) {
var msg = "Serialized task %s:%d was %d bytes which " +
"exceeds spark.akka.frameSize (%d bytes)." +
"Consider using broadcast variables for large values"
"exceeds spark.akka.frameSize (%d bytes). " +
"Consider using broadcast variables for large values."
msg = msg.format(task.taskId, task.index, serializedTask.limit, akkaFrameSize)
scheduler.error(msg)
// TODO: Need to throw an exception?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import org.apache.spark.SparkContext._
import java.nio.ByteBuffer

import org.scalatest.{BeforeAndAfterAll, BeforeAndAfter, FunSuite}

class CoarseGrainedSchedulerBackendSuite extends FunSuite with
BeforeAndAfter with BeforeAndAfterAll {
BeforeAndAfter with BeforeAndAfterAll {

override def beforeAll {
System.setProperty("spark.akka.frameSize", "1")
System.setProperty("spark.default.parallelism", "1")

}

override def afterAll {
Expand Down

0 comments on commit 062c182

Please sign in to comment.