You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "vinoyang (JIRA)" <ji...@apache.org> on 2019/01/03 16:39:00 UTC

[jira] [Assigned] (FLINK-11261) BlobServer moves file with open OutputStream

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

vinoyang reassigned FLINK-11261:
--------------------------------

    Assignee: vinoyang

> BlobServer moves file with open OutputStream
> --------------------------------------------
>
>                 Key: FLINK-11261
>                 URL: https://issues.apache.org/jira/browse/FLINK-11261
>             Project: Flink
>          Issue Type: Bug
>          Components: Local Runtime
>    Affects Versions: 1.8.0
>            Reporter: Chesnay Schepler
>            Assignee: vinoyang
>            Priority: Major
>             Fix For: 1.8.0
>
>
> Various tests fail on Windows because the BlobServer attempts to move a file while a {{FileOutputStream}} is still open:
> BlobServer#putInputStream():
> {code}
> try (FileOutputStream fos = new FileOutputStream(incomingFile)) {
> 	[ ... use fos ... ]
> 	// moves file even though fos is still open
> 	blobKey = moveTempFileToStore(incomingFile, jobId, md.digest(), blobType);
> 	return blobKey;
> } finally {
> 	...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)