format source with scalafmt, #26511
This commit is contained in:
parent
2ba9b988df
commit
75579bed17
779 changed files with 15729 additions and 13096 deletions
|
|
@ -98,8 +98,9 @@ abstract class DurableDataSpec(multiNodeConfig: DurableDataSpecConfig)
|
|||
}
|
||||
|
||||
def newReplicator(sys: ActorSystem = system) =
|
||||
sys.actorOf(Replicator.props(ReplicatorSettings(system).withGossipInterval(1.second)),
|
||||
"replicator-" + testStepCounter)
|
||||
sys.actorOf(
|
||||
Replicator.props(ReplicatorSettings(system).withGossipInterval(1.second)),
|
||||
"replicator-" + testStepCounter)
|
||||
|
||||
def join(from: RoleName, to: RoleName): Unit = {
|
||||
runOn(from) {
|
||||
|
|
@ -275,9 +276,10 @@ abstract class DurableDataSpec(multiNodeConfig: DurableDataSpecConfig)
|
|||
Await.ready(sys1.terminate(), 10.seconds)
|
||||
}
|
||||
|
||||
val sys2 = ActorSystem("AdditionalSys",
|
||||
// use the same port
|
||||
ConfigFactory.parseString(s"""
|
||||
val sys2 = ActorSystem(
|
||||
"AdditionalSys",
|
||||
// use the same port
|
||||
ConfigFactory.parseString(s"""
|
||||
akka.remote.artery.canonical.port = ${address.port.get}
|
||||
akka.remote.netty.tcp.port = ${address.port.get}
|
||||
""").withFallback(system.settings.config))
|
||||
|
|
|
|||
|
|
@ -49,11 +49,12 @@ class DurablePruningSpec extends MultiNodeSpec(DurablePruningSpec) with STMultiN
|
|||
val maxPruningDissemination = 3.seconds
|
||||
|
||||
def startReplicator(sys: ActorSystem): ActorRef =
|
||||
sys.actorOf(Replicator.props(
|
||||
ReplicatorSettings(sys)
|
||||
.withGossipInterval(1.second)
|
||||
.withPruning(pruningInterval = 1.second, maxPruningDissemination)),
|
||||
"replicator")
|
||||
sys.actorOf(
|
||||
Replicator.props(
|
||||
ReplicatorSettings(sys)
|
||||
.withGossipInterval(1.second)
|
||||
.withPruning(pruningInterval = 1.second, maxPruningDissemination)),
|
||||
"replicator")
|
||||
val replicator = startReplicator(system)
|
||||
val timeout = 5.seconds.dilated
|
||||
|
||||
|
|
@ -152,8 +153,9 @@ class DurablePruningSpec extends MultiNodeSpec(DurablePruningSpec) with STMultiN
|
|||
|
||||
runOn(first) {
|
||||
val address = cluster2.selfAddress
|
||||
val sys3 = ActorSystem(system.name,
|
||||
ConfigFactory.parseString(s"""
|
||||
val sys3 = ActorSystem(
|
||||
system.name,
|
||||
ConfigFactory.parseString(s"""
|
||||
akka.remote.artery.canonical.port = ${address.port.get}
|
||||
akka.remote.netty.tcp.port = ${address.port.get}
|
||||
""").withFallback(system.settings.config))
|
||||
|
|
|
|||
|
|
@ -83,12 +83,14 @@ class PerformanceSpec extends MultiNodeSpec(PerformanceSpec) with STMultiNodeSpe
|
|||
enterBarrier(from.name + "-joined")
|
||||
}
|
||||
|
||||
def repeat(description: String,
|
||||
keys: Iterable[ORSetKey[Int]],
|
||||
n: Int,
|
||||
expectedAfterReplication: Option[Set[Int]] = None,
|
||||
oneByOne: Boolean = false)(block: (ORSetKey[Int], Int, ActorRef) => Unit,
|
||||
afterEachKey: ORSetKey[Int] => Unit = _ => ()): Unit = {
|
||||
def repeat(
|
||||
description: String,
|
||||
keys: Iterable[ORSetKey[Int]],
|
||||
n: Int,
|
||||
expectedAfterReplication: Option[Set[Int]] = None,
|
||||
oneByOne: Boolean = false)(
|
||||
block: (ORSetKey[Int], Int, ActorRef) => Unit,
|
||||
afterEachKey: ORSetKey[Int] => Unit = _ => ()): Unit = {
|
||||
|
||||
keys.foreach { key =>
|
||||
val startTime = System.nanoTime()
|
||||
|
|
|
|||
|
|
@ -41,11 +41,12 @@ class ReplicatorPruningSpec extends MultiNodeSpec(ReplicatorPruningSpec) with ST
|
|||
val cluster = Cluster(system)
|
||||
implicit val selfUniqueAddress = DistributedData(system).selfUniqueAddress
|
||||
val maxPruningDissemination = 3.seconds
|
||||
val replicator = system.actorOf(Replicator.props(
|
||||
ReplicatorSettings(system)
|
||||
.withGossipInterval(1.second)
|
||||
.withPruning(pruningInterval = 1.second, maxPruningDissemination)),
|
||||
"replicator")
|
||||
val replicator = system.actorOf(
|
||||
Replicator.props(
|
||||
ReplicatorSettings(system)
|
||||
.withGossipInterval(1.second)
|
||||
.withPruning(pruningInterval = 1.second, maxPruningDissemination)),
|
||||
"replicator")
|
||||
val timeout = 3.seconds.dilated
|
||||
|
||||
val KeyA = GCounterKey("A")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue