Sam Whittle created BEAM-12253:
----------------------------------

             Summary: Read.UnboundedSourceAsSDFRestrictionTracker doesn't use 
cache for readers in getProgress
                 Key: BEAM-12253
                 URL: https://issues.apache.org/jira/browse/BEAM-12253
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-core
            Reporter: Sam Whittle
            Assignee: Sam Whittle


https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/io/Read.java#L963

In getProgress, if currentReader == null a new reader is constructed from the 
restriction checkpoint.  I think that we should consult the reader cache as 
creating readers is sometimes expensive.

I observed in Nexmark pipelines that readers were being created at this 
location.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to