Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle errors with no message but error code #1639

Merged
merged 2 commits into from May 5, 2020
Merged

Handle errors with no message but error code #1639

merged 2 commits into from May 5, 2020

Conversation

agriffaut
Copy link
Contributor

Some requests didn't returns ErrorMsg whereas ErrorCode is set to non 0.
On kafka 2.1.1 with SASL configured, a call to clusterAdmin.AlterConfig on a not authorized resource, return no ErrorMsg but ErrorCode is 29 (ErrTopicAuthorizationFailed)

@agriffaut agriffaut requested a review from bai as a code owner March 11, 2020 09:52
@ghost ghost added cla-needed and removed cla-needed labels Mar 11, 2020
@dnwe
Copy link
Collaborator

dnwe commented Apr 6, 2020

@agriffaut thanks for contributing to Sarama!

Your changes look good, please could you also add a small testcase to cover this scenario?

Copy link
Collaborator

@dnwe dnwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again. LGTM

@dnwe dnwe merged commit 9c1c364 into IBM:master May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants