Commit 11cd9f43 authored by pfandzelter's avatar pfandzelter
Browse files

improve error message when not reaching lighthouse or fastest client

parent 773b3310
Pipeline #64744 failed with stages
in 23 minutes and 12 seconds
......@@ -316,8 +316,10 @@ func (m *ClientsMgr) updateKeygroupClients(keygroup string) {
log.Debug().Msgf("Updating Clients for Keygroup %s", keygroup)
replica, err := m.getFastestClient().getKeygroupReplica(context.Background(), keygroup)
if err != nil {
log.Debug().Msgf("couldn't get replicas for keygroup %s from fastest client: %s", keygroup, err.Error())
replica, err = m.getClientTo(m.lighthouse).getKeygroupReplica(context.Background(), keygroup)
if err != nil {
log.Debug().Msgf("couldn't get replicas for keygroup %s from lighthouse client: %s", keygroup, err.Error())
log.Error().Msgf("updateKeygroupClients cannot reach fastest client OR lighthouse...")
return
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment