[ 
https://issues.apache.org/jira/browse/BEAM-13171?focusedWorklogId=693917&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-693917
 ]

ASF GitHub Bot logged work on BEAM-13171:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Dec/21 12:24
            Start Date: 10/Dec/21 12:24
    Worklog Time Spent: 10m 
      Work Description: aromanenko-dev commented on pull request #15951:
URL: https://github.com/apache/beam/pull/15951#issuecomment-990930207


   Seems that this change introduced `Duration` ambiguity and `Java PreCommit` 
started to fail with:
   ```
   01:21:19 > Task :sdks:java:io:kafka:compileTestJava
   01:21:19 
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit@2/src/sdks/java/io/kafka/src/test/java/org/apache/beam/sdk/io/kafka/ReadFromKafkaDoFnTest.java:155:
 error: reference to Duration is ambiguous
   01:21:19     public synchronized ConsumerRecords<byte[], byte[]> 
poll(Duration timeout) {
   01:21:19                                                              ^
   01:21:19   both class java.time.Duration in java.time and class 
org.joda.time.Duration in org.joda.time match
   01:21:19 
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit@2/src/sdks/java/io/kafka/src/test/java/org/apache/beam/sdk/io/kafka/ReadFromKafkaDoFnTest.java:52:
 error: a type with the same simple name is already defined by the 
single-type-import of Duration
   01:21:19 import org.joda.time.Duration;
   01:21:19 ^
   01:21:21 
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit@2/src/sdks/java/io/kafka/src/test/java/org/apache/beam/sdk/io/kafka/ReadFromKafkaDoFnTest.java:300:
 error: reference to Duration is ambiguous
   01:21:21     Instant stopReadTime = 
startReadTime.plus(Duration.millis(2000));
   01:21:21                                               ^
   01:21:21   both class java.time.Duration in java.time and class 
org.joda.time.Duration in org.joda.time match
   ```
   
   Interesting that for some reasons it was not caught by this PR checks,


-- 
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.

To unsubscribe, e-mail: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 693917)
    Time Spent: 3h 10m  (was: 3h)

> Support for stopReadTime on KafkaIO SDF 
> ----------------------------------------
>
>                 Key: BEAM-13171
>                 URL: https://issues.apache.org/jira/browse/BEAM-13171
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-kafka
>            Reporter: Mostafa Aghajani
>            Assignee: Mostafa Aghajani
>            Priority: P2
>             Fix For: 2.36.0
>
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> There is already the support for startReadTime using SDF when the Kafka 
> version is supported.
> I want to add the support for stopReadTIme so we can extract messages from 
> Kafka only up to a point in time and then the task will be finished.
> One use case: when you want to only re-process (re-read) a period of time for 
> a Kafka topic in your pipeline.



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

Reply via email to