Don't mark a clustered stream as unhealthy if making forward progress, add TestJetStreamClusterCurrentVsHealth

This commit is contained in:
Neil Twigg
2023-01-24 11:50:08 +00:00
parent 461aad17a5
commit 83932b4be6
4 changed files with 138 additions and 10 deletions

View File

@@ -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