Synced error names and descriptions with the kafka's protocol#1218
Merged
Conversation
Contributor
|
This one looks really helpful. I also had some hard time with error messages recently. 👍 |
Contributor
|
@nrvnrvn If you can get the tests passed, we will get it approved and merged. |
Contributor
Author
|
@sam-obeid fixed the failing tests. Not sure if I need to do anything about codecov though... |
Contributor
Contributor
|
Yep, thanks so much for @nrvnrvn for contributing and thanks @sam-obeid and @varun06 for reviewing. |
Contributor
|
Any major objections to reverting this one to address public API regression? |
Contributor
|
I am in favor of reverting and bring it back with proper process. |
Contributor
Author
Contributor
|
I think it has to be cherry picked in a new release. it's a braking change and need to communicated properly. @bai what's your thought? |
This was referenced Apr 3, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1216
This one is very opinionated since it makes a lot of renamings just for the sake of clear mapping between sarama's error codes and messages and kafka protocol.
Errors from https://kafka.apache.org/protocol#protocol_error_codes were converted to CamelCase style. Descriptions were taken as is.
See also:
https://github.com/apache/kafka/blob/741cb761c5239297029a446518c332f6c4ed08f6/clients/src/main/java/org/apache/kafka/common/protocol/Errors.java#L116
While it would be useful to keep this on par with the upstream kafka's error names and descriptions I understand that there is possibility of breaking backwards compatibility for users who already rely on error names that sarama has provided.
If you think this change is not worth it feel free to decline it.