Skip to content

Commit

Permalink
Make sure to delete the stream assignment node here
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed May 17, 2023
1 parent f355379 commit a8d7d38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/jetstream_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ func (js *jetStream) isStreamHealthy(acc *Account, sa *streamAssignment) bool {
}
} else if node != nil && node != mset.raftNode() {
s.Warnf("Detected stream cluster node skew '%s > %s'", acc.GetName(), streamName)
node.Delete()
mset.resetClusteredState(nil)
}

Expand Down

0 comments on commit a8d7d38

Please sign in to comment.