Skip to content

Commit

Permalink
[SPARK-6980] Added akkaConf to prevent dead letter logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed Jun 11, 2015
1 parent 995d196 commit d3754d1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import scala.language.postfixOps
import akka.actor.{ActorSystem, Actor, Props}
import akka.pattern.ask

import com.typesafe.config.{ConfigValueFactory, ConfigFactory}

import org.apache.spark.rpc._
import org.apache.spark.{SecurityManager, SparkConf}

Expand Down Expand Up @@ -65,7 +67,9 @@ class AkkaRpcEnvSuite extends RpcEnvSuite {
}
}

val system = ActorSystem("EchoSystem")
val akkaConf = ConfigFactory.empty().withValue("akka.log-dead-letters",
ConfigValueFactory.fromAnyRef("off"))
val system = ActorSystem("EchoSystem", akkaConf)
val echoActor = system.actorOf(Props(new EchoActor(0)), name = "echo")
val sleepyActor = system.actorOf(Props(new EchoActor(50)), name = "sleepy")

Expand Down

0 comments on commit d3754d1

Please sign in to comment.