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

Ismaël Mejía reassigned BEAM-3934:
----------------------------------

    Assignee: Ismaël Mejía

> 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: Ismaël Mejía
>            Priority: Minor
>              Labels: usability
>
> {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)

Reply via email to