Remove the Artery flight recorder (#27591)
This commit is contained in:
parent
525863bb85
commit
84cd059bb2
28 changed files with 163 additions and 1722 deletions
|
|
@ -7,10 +7,10 @@ package akka.remote
|
|||
import java.util.UUID
|
||||
|
||||
import akka.remote.artery.ArterySpecSupport
|
||||
import akka.remote.testkit.{ FlightRecordingSupport, MultiNodeConfig, MultiNodeSpec, STMultiNodeSpec }
|
||||
import akka.remote.testkit.{ MultiNodeConfig, MultiNodeSpec, STMultiNodeSpec }
|
||||
import akka.testkit.{ DefaultTimeout, ImplicitSender }
|
||||
import com.typesafe.config.ConfigFactory
|
||||
import org.scalatest.{ Outcome, Suite }
|
||||
import org.scalatest.Suite
|
||||
|
||||
object RemotingMultiNodeSpec {
|
||||
|
||||
|
|
@ -29,23 +29,7 @@ abstract class RemotingMultiNodeSpec(config: MultiNodeConfig)
|
|||
extends MultiNodeSpec(config)
|
||||
with Suite
|
||||
with STMultiNodeSpec
|
||||
with FlightRecordingSupport
|
||||
with ImplicitSender
|
||||
with DefaultTimeout { self: MultiNodeSpec =>
|
||||
|
||||
// Keep track of failure so we can print artery flight recording on failure
|
||||
private var failed = false
|
||||
final override protected def withFixture(test: NoArgTest): Outcome = {
|
||||
val out = super.withFixture(test)
|
||||
if (!out.isSucceeded)
|
||||
failed = true
|
||||
out
|
||||
}
|
||||
|
||||
override def afterTermination(): Unit = {
|
||||
if (failed || sys.props.get("akka.remote.artery.always-dump-flight-recorder").isDefined) {
|
||||
printFlightRecording()
|
||||
}
|
||||
deleteFlightRecorderFile()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue