-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-1910] Commit Offset to Kafka after successful Hudi commit #3092
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
Conversation
|
@n3nash can you pls review and provide initial thoughts on the approach. I am yet to add test cases, facing few issues in testing this out locally after running |
|
@veenaypatil High level lgtm |
Codecov Report
@@ Coverage Diff @@
## master #3092 +/- ##
============================================
- Coverage 46.36% 46.15% -0.21%
+ Complexity 5390 5368 -22
============================================
Files 920 921 +1
Lines 39939 39953 +14
Branches 4309 4288 -21
============================================
- Hits 18517 18440 -77
- Misses 19543 19631 +88
- Partials 1879 1882 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
Show resolved
Hide resolved
hudi-utilities/src/test/java/org/apache/hudi/utilities/sources/TestKafkaSource.java
Show resolved
Hide resolved
|
@n3nash @vinothchandar all the changes are done and tested, can you please review |
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java
Outdated
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java
Outdated
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
Outdated
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
Outdated
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
Outdated
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java
Outdated
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
Show resolved
Hide resolved
vinothchandar
left a comment
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.
First pass comments. Will take a deeper pass.
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java
Outdated
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
Show resolved
Hide resolved
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
Outdated
Show resolved
Hide resolved
|
@hudi-bot run travis |
hudi-examples/src/main/java/org/apache/hudi/examples/common/RandomJsonSource.java
Outdated
Show resolved
Hide resolved
n3nash
left a comment
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. I'll let @leesf review and land it
|
Hi together, this PR broke/overwrote the new change introduced in #3111 We need to pass the |
|
@sbernauer ohh, my bad 😞 |
|
@veenaypatil no problem ;) |
What is the purpose of the pull request
This change commits the offset to Kafka after a successful Hudi commit, this will help in monitoring the consumer lag
Brief change log
KafkaOffsetGen.Config.ENABLE_KAFKA_COMMIT_OFFSETto be set in properties fileVerify this pull request
This change added tests and can be verified as follows:
testCommitOffsetToKafkatest in TestKafkaSourceTesting on Actual Environment
Committer checklist
Has a corresponding JIRA in PR title & commit
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.