You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Kenneth Knowles (JIRA)" <ji...@apache.org> on 2018/04/25 02:24:00 UTC

[jira] [Assigned] (BEAM-3934) BoundedReader should be closed in JavaReadViaImpulse#ReadFromBoundedSourceFn

     [ https://issues.apache.org/jira/browse/BEAM-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Knowles reassigned BEAM-3934:
-------------------------------------

    Assignee: Chamikara Jayalath  (was: Kenneth Knowles)

> BoundedReader should be closed in JavaReadViaImpulse#ReadFromBoundedSourceFn
> ----------------------------------------------------------------------------
>
>                 Key: BEAM-3934
>                 URL: https://issues.apache.org/jira/browse/BEAM-3934
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-core
>            Reporter: Ted Yu
>            Assignee: Chamikara Jayalath
>            Priority: Minor
>
> {code}
>     public void readSoruce(ProcessContext ctxt) throws IOException {
>       BoundedSource.BoundedReader<T> reader =
>           ctxt.element().createReader(ctxt.getPipelineOptions());
>       for (boolean more = reader.start(); more; more = reader.advance()) {
>         ctxt.outputWithTimestamp(reader.getCurrent(), reader.getCurrentTimestamp());
>       }
>     }
> {code}
> The BoundedSource.BoundedReader instance should be closed before returning from the method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)