Add log messages to detect dying peer edge case

This commit is contained in:
Brice Fernandes authored and Bryan Boreham committed 2017-11-14 14:06:34 +00:00
1 parent fd2f91e2ee
commit 3afb8d3ddf
1 file changed
+2
+2
View File
@@ -138,9 +138,11 @@ func reclaimRemovedPeers(weave *weaveapi.Client, cml *configMapAnnotations, node
}
// 7a. Remove X from peerList
storedPeerList.remove(peer.PeerName)
common.Log.Infoln("Removing peer ", peer.PeerName, ". Expecting to remove linked annotation next.")
if err := cml.UpdatePeerList(*storedPeerList); err != nil {
return err
}
common.Log.Infoln("Removing annotation ", peer.PeerName)
// 7b. Remove annotation with key X
return cml.RemoveAnnotation(peer.PeerName)
})