Explorar o código

Log when we run out of retries

Evan Huus %!s(int64=11) %!d(string=hai) anos
pai
achega
652d53452a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      client.go

+ 1 - 0
client.go

@@ -360,6 +360,7 @@ func (client *Client) refreshMetadata(topics []string, retriesRemaining int) err
 
 			if len(retry) > 0 {
 				if retriesRemaining <= 0 {
+					Logger.Println("Some partitions are leaderless, but we're out of retries")
 					return nil
 				}
 				Logger.Printf("Some partitions are leaderless, waiting %dms for election... (%d retries remaining)\n", client.config.WaitForElection/time.Millisecond, retriesRemaining)