-
Notifications
You must be signed in to change notification settings - Fork 13.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
KAFKA-10160: Kafka MM2 consumer configuration #8921
Conversation
KAFKA-10160: Removed hardcoded auto.offset.reset in MM2 consumer configuration, defaults to earliest unless specified.
@@ -123,6 +125,10 @@ | |||
private static final String CONSUMER_POLL_TIMEOUT_MILLIS_DOC = "Timeout when polling source cluster."; | |||
public static final long CONSUMER_POLL_TIMEOUT_MILLIS_DEFAULT = 1000L; | |||
|
|||
public static final String CONSUMER_AUTO_OFFSET_RESET = "consumer.auto.offset.reset"; | |||
private static final String CONSUMER_AUTO_OFFSET_RESET_DOC = "Consumer Auto offset reset, defaults to earliest unless specify."; |
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.
can leave off "unless specified" -- is redundant with "default".
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.
Updated "Consumer Auto offset reset, default to earliest unless specified."
updated the doc
@omkreddy can you review? |
@mjsax can you label appropriately for merge. |
|
@mimaison any comments ? |
@satishbellapu I'll try to take a look Thursday or Friday |
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorConnectorConfig.java
Outdated
Show resolved
Hide resolved
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorConnectorConfig.java
Outdated
Show resolved
Hide resolved
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorConnectorConfig.java
Outdated
Show resolved
Hide resolved
Thanks @satishbellapu for the update, it looks good. Can we add a test too? |
@mimaison can you review? |
ok to test |
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, Thanks for the PR
Test failure is unrelated:
|
@satishbellapu this fix isn't present in the latest version specifically 2.7. I think you have to raise a PR to trunk to make it available for all the future versions. |
I am running into this issue right now. It looks like this PR never got merged to trunk. @satishbellapu, are you able to do this? |
@askldjd Good catch, you're right it looks like this was only merged into 2.4. I've reopened KAFKA-10160. |
Thanks @mimaison. Really appreciate it. |
Actually the fix is in 2.8 and above. It was made in cf202cb |
Removed hardcoded auto.offset.reset in MM2 consumer configuration, retained default as earliest unless specified.
Committer Checklist (excluded from commit message)