You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sarama Version: e7238b1
Kafka Version: 1.1.1
Go Version: go1.10
Configuration
N/A
Logs
N/A
Problem Description
The ClusterAdmin interface added under #1055 provides an administrative client for Kafka similar to the official Java client based on design discussions under #1048
However, in the case of a TopicError being returned by one of the calls, only the underlying KError is returned to the user as it satisfies the built-in error interface.
However, in the case of (e.g.,) sarama.ErrPolicyViolation, sarama.ErrInvalidPartitions, sarama.ErrInvalidReplicaAssignment etc. there may well be a specific error message in the TopicErrorErrMsg that is being hidden from the caller.
Shouldn't TopicError itself be extended to satisfy the error interface by appending any ErrMsg to the generic one?
Versions
Sarama Version: e7238b1
Kafka Version: 1.1.1
Go Version: go1.10
Configuration
N/A
Logs
N/A
Problem Description
The
ClusterAdmin
interface added under #1055 provides an administrative client for Kafka similar to the official Java client based on design discussions under #1048However, in the case of a
TopicError
being returned by one of the calls, only the underlyingKError
is returned to the user as it satisfies the built-inerror
interface.https://github.com/Shopify/sarama/blob/e7238b119b7daab993720f0153eafb88e2b0ac1f/admin.go#L141-L148
However, in the case of (e.g.,)
sarama.ErrPolicyViolation
,sarama.ErrInvalidPartitions
,sarama.ErrInvalidReplicaAssignment
etc. there may well be a specific error message in theTopicError
ErrMsg
that is being hidden from the caller.Shouldn't
TopicError
itself be extended to satisfy theerror
interface by appending anyErrMsg
to the generic one?e.g.,
The text was updated successfully, but these errors were encountered: