[ 
https://issues.apache.org/jira/browse/BEAM-3935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17546991#comment-17546991
 ] 

Kenneth Knowles commented on BEAM-3935:
---------------------------------------

This issue has been migrated to https://github.com/apache/beam/issues/18797

> 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.20.7#820007)

Reply via email to