[
https://issues.apache.org/jira/browse/BEAM-3935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17139624#comment-17139624
]
Beam JIRA Bot commented on BEAM-3935:
-------------------------------------
This issue was marked "stale-assigned" and has not received a public comment in
7 days. It is now automatically unassigned. If you are still working on it, you
can assign it to yourself again. Please also give an update about the status of
the work.
> FileChannel instance should be closed in
> ArtifactServiceStager#StagingCallable#get
> ----------------------------------------------------------------------------------
>
> Key: BEAM-3935
> URL: https://issues.apache.org/jira/browse/BEAM-3935
> Project: Beam
> Issue Type: Bug
> Components: runner-core
> Reporter: Ted Yu
> Priority: P3
>
> {code}
> FileChannel channel = new FileInputStream(file).getChannel();
> ByteBuffer readBuffer = ByteBuffer.allocate(bufferSize);
> while (!responseObserver.isTerminal() && channel.position() <
> channel.size()) {
> readBuffer.clear();
> channel.read(readBuffer);
> {code}
> The channel should be closed before returning from get()
--
This message was sent by Atlassian Jira
(v8.3.4#803005)