[
https://issues.apache.org/jira/browse/BEAM-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ismaël Mejía resolved BEAM-3934.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.14.0
> 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
> Fix For: 2.14.0
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> {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)