Skip to content

Commit

Permalink
close akkadotnet#3450 - don't let SplitBrainResolver log 'partition d…
Browse files Browse the repository at this point in the history
…etected' messages when there are no unreachable nodes
  • Loading branch information
Aaronontheweb committed May 22, 2018
1 parent 53e0e06 commit 43ec40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Akka.Cluster/SplitBrainResolver.cs
Expand Up @@ -317,7 +317,7 @@ protected override void OnReceive(object message)

private void HandleStabilityReached()
{
if (Log.IsInfoEnabled)
if (Log.IsInfoEnabled && _unreachable.Any())
{
Log.Info("A network partition detected - unreachable nodes: [{0}], remaining: [{1}]", string.Join(", ", _unreachable.Select(m => m.Address)), string.Join(", ", _reachable.Select(m => m.Address)));
}
Expand Down

0 comments on commit 43ec40c

Please sign in to comment.