-
Notifications
You must be signed in to change notification settings - Fork 466
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
chore(deps): bump sarama to v1.41.0 #3108
Conversation
Also remove old module replace pin to v1.37.2 as that shouldn't be necessary since dapr/docs#3474 added documentation to add a config version pin for Azure EventHubs users instead. Note: the module path has changed to github.com/IBM/sarama since ownership transitioned away from Shopify Fixes dapr#3104 Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
Thanks for the PR. Unfortunately I cannot accept this PR. Please do not upgrade any further deps at this time. I upgraded everything there was to upgrade safely yesterday and merged that this morning. We cannot safely upgrade sarama at this time. See #3106 for a summary. |
The original issue with After upgrading sarama we encountered several issues that required a hotfix release. For this reason we will not take the risk to upgrade sarama at this time (just ahead of the 1.12 release). To upgrade this library we will need to perform further manual testing and we do not have the bandwidth at this time. |
@dnwe I'll see if we can run some additional tests - if we can get EventHubs to work with this version we can reopen this PR. That being said, I'm not sure anyone has time ahead of the 1.12 release unfortunately. |
@berndverst yes no problem, I expect IBM/sarama#2470 was the underlying issue The problem with supporting Azure Event Hubs is that it isn't Apache Kafka under the covers, it's an intermediate proxy that supports a subset of the Kafka APIs at various versions and then maps them onto Event Hubs protocol(s) at the backend. As as result Sarama's current mechanism of specifying the KAFKA_VERSION to determine what protocol versions to support and use doesn't really work properly with Event Hubs because it supports an unusual set of protocols and even defines minimum versions for ProduceRequest (v3) and FetchRequest (v4). For some reason EventHubs is very behind on FetchRequest and MetadataRequest so the max configuration you can use in Sarama is V1_0_0_0. Here are the equivalent max versions for Kafka 1.0 and EventHubs:
|
@dnwe That issue was actually filed by us :D (@DeepanshuA is is an approver of this repo). But I think after much investigation we too determined that customers must set the Kafka version to V1, we even updated the Dapr documentation to call this out. So perhaps with that in mind we can try upgrading the sarama version. The more I read about the issue you are trying to fix by upgrading Sarama, I think I'd rather break EventHubs in the worst case :) |
Signed-off-by: Bernd Verst <github@bernd.dev>
@berndverst ah thanks, I didn't realise you were going to re-open and merge this. I followed up with #3109 to put an additional safety blanket in-place that should prevent you from getting issues raised by Event Hubs users |
Description
Bump sarama to v1.41.0
Also remove old module replace pin to v1.37.2 as that shouldn't be necessary since dapr/docs#3474 added documentation to add a config version pin for Azure EventHubs users instead.
Note: the module path has changed to github.com/IBM/sarama since ownership transitioned away from Shopify
Issue reference
Fixes #3104
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: