Merge pull request #1211 from akka/wip-3110-test-thread-dump-rich
Dump diagnostics (Coroner's Report) if a test takes too long. Fixes #3110
This commit is contained in:
commit
a78e26ae41
6 changed files with 305 additions and 2 deletions
|
|
@ -50,16 +50,23 @@ object MultiNodeClusterSpec {
|
|||
""")
|
||||
}
|
||||
|
||||
trait MultiNodeClusterSpec extends Suite with STMultiNodeSpec { self: MultiNodeSpec ⇒
|
||||
trait MultiNodeClusterSpec extends Suite with STMultiNodeSpec with WatchedByCoroner { self: MultiNodeSpec ⇒
|
||||
|
||||
override def initialParticipants = roles.size
|
||||
|
||||
private val cachedAddresses = new ConcurrentHashMap[RoleName, Address]
|
||||
|
||||
override def atStartup(): Unit = {
|
||||
startCoroner()
|
||||
muteLog()
|
||||
}
|
||||
|
||||
override def afterTermination(): Unit = {
|
||||
stopCoroner()
|
||||
}
|
||||
|
||||
override def expectedTestDuration = 60.seconds
|
||||
|
||||
def muteLog(sys: ActorSystem = system): Unit = {
|
||||
if (!sys.log.isDebugEnabled) {
|
||||
Seq(".*Metrics collection has started successfully.*",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue