Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10493

Unbounded sources unable to recover from checkpointMark when withMaxReadTime() is used

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • 2.22.0
    • None
    • sdk-java-core

    Description

      Observed on v2.22.0 

      When withMaxReadTime() is used, Beam creates an BoundedReadFromUnboundedSource [1].  The ReadFn<T> class in BoundedReadFromUnboundedSource which is responsible for reading records from source. You can see this class doesnt verify if there is a recoverable checkpoint exist. Instead it always creates Reader with checkpointMark set as null [2]

       

      Reference:

      [1] https://github.com/apache/beam/blob/v2.22.0/sdks/java/core/src/main/java/org/apache/beam/sdk/io/Read.java#L205

      [2]https://github.com/apache/beam/blob/v2.22.0/sdks/java/core/src/main/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSource.java#L193

       

      Attachments

        1. image-2020-07-15-15-15-12-937.png
          165 kB
          Mani Kolbe
        2. image-2020-07-15-15-15-01-705.png
          165 kB
          Mani Kolbe

        Activity

          People

            Unassigned Unassigned
            manikolbe Mani Kolbe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: