You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Sam Whittle (Jira)" <ji...@apache.org> on 2021/04/29 11:34:00 UTC

[jira] [Created] (BEAM-12253) Read.UnboundedSourceAsSDFRestrictionTracker doesn't use cache for readers in getProgress

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)