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