Ted Yu created BEAM-3934:
----------------------------
Summary: 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: Kenneth Knowles
{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)