Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11261

BlobServer moves file with open OutputStream

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.8.0
    • None
    • Runtime / Task
    • None

    Description

      Various tests fail on Windows because the BlobServer attempts to move a file while a FileOutputStream is still open:

      BlobServer#putInputStream():

      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 {
      	...
      }
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yanghua vinoyang
            chesnay Chesnay Schepler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment