[ 
https://issues.apache.org/jira/browse/BEAM-13852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17510120#comment-17510120
 ] 

Luke Cwik commented on BEAM-13852:
----------------------------------

DoFn can't use a processing time timer since the timer won't fire anymore once 
the watermark advances to infinity. Processing time timers only fire while the 
watermark isn't at infinity/MAX. It would likely be best to replace the 
implementation with the Watch[1] transform which will hold up the watermark 
appropriately and was built for this kind of use case already.

Discussion in https://lists.apache.org/thread/fo6jrg15pwd6bjpl6k8g4l0z953mp7ry

1: 
https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Watch.java

> KafkaIO.read.withDynamicRead() doesn't pick up new TopicPartitions
> ------------------------------------------------------------------
>
>                 Key: BEAM-13852
>                 URL: https://issues.apache.org/jira/browse/BEAM-13852
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-kafka
>            Reporter: John Casey
>            Assignee: John Casey
>            Priority: P2
>
> KafkaIO.Read().withDynamicRead() is correctly pulling messages from existing 
> topics, but isn't picking up new topics or partitions when they are created.
> Currently, this appears to be an interaction between the timer configuration, 
> and the duration of the operating window, that is causing the problem



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to