-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Update to sarama v1.10.0 #2190
Update to sarama v1.10.0 #2190
Conversation
TLS: nil, | ||
Timeout: 30 * time.Second, | ||
Worker: 1, | ||
Metadata: metaConfig{ |
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.
What will happen if these settings are used with an older version of Kafka?
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.
sarama lib supports kafka 0.8 - 0.10 . Settings should be valid for all kafka versions. Lib might internally ignore settings if they do not apply to the version being used. AFAIK metadata updates and publisher settings should have same effect for kafka versions.
06d4598
to
ec5fae2
Compare
@@ -108,16 +108,28 @@ func (c *client) AsyncPublishEvents( | |||
topic = event["type"].(string) | |||
} | |||
|
|||
var ts time.Time | |||
if c.config.Version.IsAtLeast(sarama.V0_10_0_0) { |
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.
A code comment would be nice that quickly explains why whis is only possible with >= 0.10
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.
done
Doesn't this PR also need an update the libbeat config file? |
ec5fae2
to
29d2dc8
Compare
Ups, yes. |
560dfe8
to
75ba5e9
Compare
75ba5e9
to
44da82f
Compare
@ruflin added missing config file updates + added options to docs |
No description provided.