Bläddra i källkod

ReplicaNotAvailable is returned from FetchRequests.

It is returned, rather than LeaderNotAvailable, when a replica is
capable of handling your request, but none are available. This applies
(only?) to FetchRequests.
Burke Libbey 12 år sedan
förälder
incheckning
290b698c74
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      errors.go

+ 1 - 1
errors.go

@@ -111,7 +111,7 @@ func (err KError) Error() string {
 	case BrokerNotAvailable:
 		return "kafka server: Broker not available. Not a client facing error, we should never receive this!!!"
 	case ReplicaNotAvailable:
-		return "kafka server: Replica not available. What is the difference between this and LeaderNotAvailable?"
+		return "kafka server: Replica not available. No replicas are available to read from this topic-partition."
 	case MessageSizeTooLarge:
 		return "kafka server: Message was too large, server rejected it to avoid allocation error."
 	case StaleControllerEpochCode: