Skip to content

Commit

Permalink
[daemondata] setNextMsgType verify remaining d.hbGens values from non…
Browse files Browse the repository at this point in the history
… cluster node

This should not happen
  • Loading branch information
cgalibern committed Aug 15, 2023
1 parent 13a37b4 commit 38e518a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions daemon/daemondata/hb_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ func (d *data) setNextMsgType() {
continue
}
if _, ok := d.clusterNodes[node]; !ok {
// unexpected hb gens from non cluster member, so it doesn't need full
d.log.Warn().Msgf("evict unexpected hb gens %s: not a cluster node", node)
err := fmt.Errorf("bug: d.hbGens[%s] exists without d.clusterNodes[%s]", node, node)
// TODO: replace with panic(err) ?
d.log.Error().Err(err).Msgf("setNextMsgType cleanup unexpected hb gens %s", node)
delete(d.hbGens, node)
continue
}
Expand Down

0 comments on commit 38e518a

Please sign in to comment.