-
Notifications
You must be signed in to change notification settings - Fork 199
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
Upgrade dependencies #853
Upgrade dependencies #853
Conversation
c9b8048
to
b458adb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for upgrading to Go 1.19 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you so much for the contribution.
e308df9
911f792
to
5c1fa74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, if it behaved well on the tests, I'm fine merging this.
pkg/kafkaclient/client.go
Outdated
@@ -27,7 +27,8 @@ import ( | |||
) | |||
|
|||
var log = logf.Log.WithName("kafka_util") | |||
var apiVersion = sarama.V2_6_0_0 | |||
var apiVersion = sarama.MaxVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://github.com/Shopify/sarama/blob/v1.36.0/config.go#L455
// The version of Kafka that Sarama will assume it is running against.
// Defaults to the oldest supported stable version. Since Kafka provides
// backwards-compatibility, setting it to a version older than you have
// will not break anything, although it may prevent you from using the
// latest features. Setting it to a version greater than you are actually
// running may lead to random breakage.
Version KafkaVersion
This means that using sarama.MaxVersion
api version which points to V3_2_0_0
may cause to random issues in koperator when interacting with older Kafka versions (e.g. 2.6).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah in this case I support leaving it on the older version for backward compatibility reasons.
If this is a blocker for you Adrian, let us know and we will think about what else we could do.
My apologies for missing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kafka clients since 1.x are also backward compatible with older versions of brokers - in the sense that they negotiate the latest API version they can talk during the initial handshake. I believe that comment is a very old one (6 yrs back IBM/sarama@5e8b6ff) when that was not the case.
Either way - I don't have a strong opinion and I can revert back this.
The intent was to ensure we always use the latest API version sarama client can talk and not having to worry about in the feature about bumping this in needed.
- Upgrade to go 1.19 - Upgrade all dependencies Signed-off-by: Adi Muraru <amuraru@adobe.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for the upgrade :)
I'm planning to have this merged end of business day unless anyone objects. |
What's in this PR?
Why?
Keeping dependencies up to date
Checklist