Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ private[cluster] final class ClusterHeartbeatReceiver extends Actor with ActorLo

// Important - don't use Cluster(context.system) in constructor because that would
// cause deadlock. See startup sequence in ClusterDaemon.
lazy val selfHeartbeatRsp = HeartbeatRsp(Cluster(context.system).selfUniqueAddress)
lazy val cluster = Cluster(context.system)
lazy val selfHeartbeatRsp = HeartbeatRsp(cluster.selfUniqueAddress)
lazy val verboseHeartbeat = cluster.settings.Debug.VerboseHeartbeatLogging

def receive = {
case Heartbeat(from) ⇒ sender() ! selfHeartbeatRsp
case Heartbeat(from) ⇒
if (verboseHeartbeat) log.debug("Cluster Node [{}] - Heartbeat from [{}]", cluster.selfAddress, from)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we have "Heartbeat to", "Heartbeat from" and "Heartbeat response from". That's good.

sender() ! selfHeartbeatRsp
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ private[transport] class ProtocolStateActor(
})
wrappedHandle.disassociate(disassociationReason(reason), log)

case StopEvent(reason, _, AssociatedWaitHandler(handlerFuture, wrappedHandle, queue)) ⇒
case StopEvent(reason, _, AssociatedWaitHandler(handlerFuture, wrappedHandle, _)) ⇒
// Invalidate exposed but still unfinished promise. The underlying association disappeared, so after
// registration immediately signal a disassociate
val disassociateNotification = reason match {
Expand Down