You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/01/19 18:23:10 UTC
[GitHub] [beam] boyuanzz commented on a change in pull request #13710: [BEAM-11325] ReadFromKafkaDoFn should stop reading when topic/partition is removed or marked as stopped
boyuanzz commented on a change in pull request #13710:
URL: https://github.com/apache/beam/pull/13710#discussion_r560389800
##########
File path: sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaIO.java
##########
@@ -1402,6 +1407,15 @@ public void populateDisplayData(DisplayData.Builder builder) {
return toBuilder().setConsumerFactoryFn(consumerFactoryFn).build();
}
+ /**
+ * A custom {@link SerializableFunction} that determines whether the {@link ReadFromKafkaDoFn}
+ * should stop reading from the given {@link TopicPartition}.
+ */
+ public ReadSourceDescriptors<K, V> withCheckStopReadingFn(
Review comment:
Yeah, will do. I'll also add support to commit transform together in this PR for reverting safety.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org