mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Don't mark a clustered stream as unhealthy if making forward progress, add TestJetStreamClusterCurrentVsHealth
This commit is contained in:
@@ -3105,7 +3105,7 @@ func (s *Server) healthz(opts *HealthzOptions) *HealthStatus {
|
||||
for stream, sa := range asa {
|
||||
if sa.Group.isMember(ourID) {
|
||||
// Make sure we can look up
|
||||
if !cc.isStreamCurrent(acc, stream) {
|
||||
if !cc.isStreamHealthy(acc, stream) {
|
||||
health.Status = na
|
||||
health.Error = fmt.Sprintf("JetStream stream '%s > %s' is not current", acc, stream)
|
||||
return health
|
||||
|
||||
Reference in New Issue
Block a user