mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 02:30:40 -07:00
Change the report to something like this instead:
``` Replica: Server name unknown at this time (peerID: jZ6RvVRH), outdated, OFFLINE, not seen ``` After discussing with @ripienaar, this text convey better a sense that this is a transient situation. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -6870,7 +6870,7 @@ func (js *jetStream) clusterInfo(rg *raftGroup) *ClusterInfo {
|
||||
// If not, then add a name that indicates that the server name
|
||||
// is unknown at this time, and clear the lag since it is misleading
|
||||
// (the node may not have that much lag).
|
||||
pi.Name, pi.Lag = fmt.Sprintf("<unknown (peerID: %s)>", rp.ID), 0
|
||||
pi.Name, pi.Lag = fmt.Sprintf("Server name unknown at this time (peerID: %s)", rp.ID), 0
|
||||
}
|
||||
ci.Replicas = append(ci.Replicas, pi)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user