From 669a76167f7fd6cf6f5f021fc5e822001f8ec34d Mon Sep 17 00:00:00 2001 From: Travis Bischel Date: Fri, 5 Aug 2022 13:59:04 -0600 Subject: [PATCH] kerr: add two new errors For new requests, unused in clients --- pkg/kerr/kerr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kerr/kerr.go b/pkg/kerr/kerr.go index 26db1235..913c53f5 100644 --- a/pkg/kerr/kerr.go +++ b/pkg/kerr/kerr.go @@ -180,6 +180,8 @@ var ( InconsistentClusterID = &Error{"INCONSISTENT_CLUSTER_ID", 104, false, "The clusterId in the request does not match that found on the server."} TransactionalIDNotFound = &Error{"TRANSACTIONAL_ID_NOT_FOUND", 105, false, "The transactionalId could not be found."} FetchSessionTopicIDError = &Error{"FETCH_SESSION_TOPIC_ID_ERROR", 106, true, "The fetch session encountered inconsistent topic ID usage."} + IneligibleReplica = &Error{"INELIGIBLE_REPLICA", 107, false, "The new ISR contains at least one ineligible replica."} + NewLeaderElected = &Error{"NEW_LEADER_ELECTED", 108, false, "The AlterPartition request successfully updated the partition state but the leader has changed."} ) var code2err = map[int16]error{