Enable flight recorder in tests #21205
* Setting to configure where the flight recorder puts its file * Run ArteryMultiNodeSpecs with flight recorder enabled * More cleanup in exit hook, wait for task runner to stop * Enable flight recorder for the cluster multi node tests * Enable flight recorder for multi node remoting tests * Toggle always-dump flight recorder output when akka.remote.artery.always-dump-flight-recorder is set
This commit is contained in:
parent
8de56a52b6
commit
392ca5ecce
36 changed files with 380 additions and 134 deletions
|
|
@ -9,7 +9,8 @@ import akka.actor.ActorRef
|
|||
import akka.actor.Address
|
||||
import akka.actor.PoisonPill
|
||||
import akka.actor.Props
|
||||
import akka.remote.testkit.{ STMultiNodeSpec, MultiNodeConfig, MultiNodeSpec }
|
||||
import akka.remote.MultiNodeRemotingSpec
|
||||
import akka.remote.testkit.{ MultiNodeConfig, MultiNodeSpec, STMultiNodeSpec }
|
||||
import akka.routing.Broadcast
|
||||
import akka.routing.RandomPool
|
||||
import akka.routing.RoutedActorRef
|
||||
|
|
@ -26,7 +27,7 @@ class RemoteRandomConfig(artery: Boolean) extends MultiNodeConfig {
|
|||
commonConfig(debugConfig(on = false).withFallback(
|
||||
ConfigFactory.parseString(s"""
|
||||
akka.remote.artery.enabled = $artery
|
||||
""")))
|
||||
""")).withFallback(MultiNodeRemotingSpec.arteryFlightRecordingConf))
|
||||
|
||||
deployOnAll("""
|
||||
/service-hello {
|
||||
|
|
@ -55,8 +56,8 @@ object RemoteRandomSpec {
|
|||
}
|
||||
}
|
||||
|
||||
class RemoteRandomSpec(multiNodeConfig: RemoteRandomConfig) extends MultiNodeSpec(multiNodeConfig)
|
||||
with STMultiNodeSpec with ImplicitSender with DefaultTimeout {
|
||||
class RemoteRandomSpec(multiNodeConfig: RemoteRandomConfig) extends MultiNodeRemotingSpec(multiNodeConfig)
|
||||
with DefaultTimeout {
|
||||
import multiNodeConfig._
|
||||
import RemoteRandomSpec._
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue