-
Notifications
You must be signed in to change notification settings - Fork 126
Error switching standby and primary metrics #814
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
in the Reap() method the hostLastknownStatusInRecover[monitoredSource.Name] has been set to monitoredSource.IsInRecovery before the comparsion so it will always be false and the metrics configs won't be switched
### set to same value here
hostLastKnownStatusInRecovery[monitoredSource.Name] = monitoredSource.IsInRecovery
....
if monitoredSource.IsPostgresSource() {
....
lastKnownStatusInRecovery := hostLastKnownStatusInRecovery[monitoredSource.Name]
...
### always false we are comparing the variable to itself
else if lastKnownStatusInRecovery != monitoredSource.IsInRecovery {
....
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working