-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Disable KafkaIO SDF while it is tested and fixed #22261
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2bf47c9
21730 add warning message
johnjcasey 4ae0939
add python warnings
johnjcasey 4ef4c00
add python warnings
johnjcasey 8b20e60
Merge remote-tracking branch 'origin/master' into add-kafka-sdf-comment
johnjcasey 476cc54
Merge remote-tracking branch 'origin/master' into add-kafka-sdf-comment
johnjcasey aeb6b6e
update comments
johnjcasey ac6c369
fix indentation for pydoc
johnjcasey 1f55b1a
Merge remote-tracking branch 'origin/add-kafka-sdf-comment' into add-…
johnjcasey 5b0e77a
Merge remote-tracking branch 'origin/master' into add-kafka-sdf-comment
johnjcasey ba3f3b8
update comment
johnjcasey b408303
remove python comments
johnjcasey fa33138
Merge remote-tracking branch 'origin/add-kafka-sdf-comment' into add-…
johnjcasey 0d01374
Merge remote-tracking branch 'origin/master' into add-kafka-sdf-comment
johnjcasey d3997c0
Merge remote-tracking branch 'origin/master' into add-kafka-sdf-comment
johnjcasey 6daf3a0
revert Cham's changes
johnjcasey 7670410
Merge remote-tracking branch 'origin/add-kafka-sdf-comment' into add-…
johnjcasey d6345ad
Disable kafka sdf by adding "use_unbounded_sdf_wrapper"
johnjcasey e44d2dd
add link to higher level issue
johnjcasey bf4e978
unrevert changes to external.py
johnjcasey 7ddb931
Merge remote-tracking branch 'origin/add-kafka-sdf-comment' into add-…
johnjcasey beb3383
exclude SDF specific tests
johnjcasey 6ec8808
Merge remote-tracking branch 'origin/add-kafka-sdf-comment' into add-…
johnjcasey 21af25c
temporarily remove kafka specific tests
johnjcasey 0f8a586
change workaround to just use the unbounded reader, instead of settin…
johnjcasey 4d3cb12
remove method temporarily
johnjcasey 7b1bfae
run spotless
johnjcasey 0cb617e
Merge remote-tracking branch 'origin/master' into add-kafka-sdf-comment
johnjcasey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This isn't a valid reason to completely disable Kafka SDF. What if the consumer is totally fine with starting from scratch? I have business need that requires scanning time ranges - that is only being supported by SDF - without caring about any previous consumer offset. Disable it ONLY if
group.id
is provided.beam/sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaIOReadImplementationCompatibility.java
Lines 93 to 94 in 367173f
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.
Basically just add to the whole chunk of code you commented here a check like 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.
This is temporary. We primarily want to make sure that a new user won't run into this problem. We intend to fix this as rapidly as possible. If you have a less typical use case, that will still work on existing versions of Beam, while we try to get this fixed
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.
If this gets merged into master and gets released it's not temporary. Totally removing the SDF support is a breaking change. It should be as minimally breaking as possible. I have shown one precondition that indicates it works just fine even in this bugged state. There could be even more.
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.
If you have this use case, there are probably others. We won't disable this at all then