Skip to content

Commit

Permalink
Fix js-server-only health check on v2.10.17 (#5513)
Browse files Browse the repository at this point in the history
Got removed while applying last cherry pick so adding it back with the
expected behavior for v2.10.X.
  • Loading branch information
wallyqs authored Jun 10, 2024
2 parents 005cb53 + 711dd27 commit ac5fea9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3485,6 +3485,11 @@ func (s *Server) healthz(opts *HealthzOptions) *HealthStatus {
return health
}

// If JSServerOnly is true, then do not check further accounts, streams and consumers.
if opts.JSServerOnly {
return health
}

// Are we still recovering meta layer?
if js.isMetaRecovering() {
if !details {
Expand Down

0 comments on commit ac5fea9

Please sign in to comment.