-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix OTEL kafka receiver/ingester panic #2512
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
// However the Jaeger OTEL module pulls in newer samara version (from OTEL collector) | ||
// that does not set saramaConfig.Consumer.Offsets.CommitInterval to its default value 1s. | ||
// then the samara-cluster fails if the default interval is not 1s. | ||
saramaConfig.Consumer.Offsets.CommitInterval = time.Second |
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.
Should this check whether the value has already been set, for use in non-OTEL context? Or would it only ever be the default value?
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.
One second is always the default value we never override it.
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.
Note that the whole kafka implementation will be replaced to OTEL one that does not use samara-cluster #2494
I had to fix this in my branch as well. I did it by registering receiver flags here: https://github.com/jaegertracing/jaeger/pull/2494/files#diff-049d063f5338468c88d1c32ad60055efR114 This loaded receiver defaults which includes a non-zero value for this param. I intend to add the requested tests today if we just want to merge that. |
Codecov Report
@@ Coverage Diff @@
## master #2512 +/- ##
=======================================
Coverage 95.18% 95.18%
=======================================
Files 208 208
Lines 9158 9158
=======================================
Hits 8717 8717
Misses 365 365
Partials 76 76 Continue to review full report at Codecov.
|
This seems like a different problem, the commit interval is not exposed via flags. |
Signed-off-by: Pavol Loffay ploffay@redhat.com
Fixes the following message. The description is in the code.