Turn on gossip logging for flaky test + improve test error msg (#23868)
This commit is contained in:
parent
70f2fc9622
commit
83a97256cc
2 changed files with 10 additions and 10 deletions
|
|
@ -10,7 +10,6 @@ import akka.actor.ActorRef
|
|||
import akka.actor.Address
|
||||
import akka.actor.Props
|
||||
import akka.cluster.Cluster
|
||||
import akka.cluster.ClusterEvent._
|
||||
import akka.cluster.MemberStatus
|
||||
import akka.cluster.sharding.ShardRegion.CurrentRegions
|
||||
import akka.cluster.sharding.ShardRegion.GetCurrentRegions
|
||||
|
|
@ -55,11 +54,12 @@ object MultiDcClusterShardingSpecConfig extends MultiNodeConfig {
|
|||
val fourth = role("fourth")
|
||||
|
||||
commonConfig(ConfigFactory.parseString(s"""
|
||||
# DEBUG because of failing test, issue #23582
|
||||
# DEBUG because of failing test, issue #23741
|
||||
akka.loglevel = DEBUG
|
||||
akka.cluster.debug.verbose-heartbeat-logging = on
|
||||
akka.cluster.debug.verbose-gossip-logging = on
|
||||
akka.actor.provider = "cluster"
|
||||
akka.remote.log-remote-lifecycle-events = off
|
||||
akka.remote.log-remote-lifecycle-events = on
|
||||
akka.cluster.auto-down-unreachable-after = 0s
|
||||
"""))
|
||||
|
||||
|
|
@ -90,19 +90,21 @@ abstract class MultiDcClusterShardingSpec extends MultiNodeSpec(MultiDcClusterSh
|
|||
runOn(from) {
|
||||
cluster join node(to).address
|
||||
startSharding()
|
||||
withClue(s"Failed waiting for ${cluster.selfUniqueAddress} to be up. Current state: ${cluster.state}" + cluster.state) {
|
||||
within(15.seconds) {
|
||||
awaitAssert(cluster.state.members.exists { m ⇒
|
||||
m.uniqueAddress == cluster.selfUniqueAddress && m.status == MemberStatus.Up
|
||||
} should be(true))
|
||||
}
|
||||
}
|
||||
}
|
||||
enterBarrier(from.name + "-joined")
|
||||
}
|
||||
|
||||
def startSharding(): Unit = {
|
||||
ClusterSharding(system).start(
|
||||
typeName = "Entity",
|
||||
entityProps = Props[Entity],
|
||||
entityProps = Props[Entity](),
|
||||
settings = ClusterShardingSettings(system),
|
||||
extractEntityId = extractEntityId,
|
||||
extractShardId = extractShardId)
|
||||
|
|
|
|||
|
|
@ -347,8 +347,6 @@ akka {
|
|||
# writer exceeds this limit. It can be disabled by setting the value to off.
|
||||
log-buffer-size-exceeding = 50000
|
||||
|
||||
|
||||
|
||||
# After failed to establish an outbound connection, the remoting will mark the
|
||||
# address as failed. This configuration option controls how much time should
|
||||
# be elapsed before reattempting a new connection. While the address is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue