Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-3935

FileChannel instance should be closed in ArtifactServiceStager#StagingCallable#get

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • runner-core
    • None

    Description

            FileChannel channel = new FileInputStream(file).getChannel();
            ByteBuffer readBuffer = ByteBuffer.allocate(bufferSize);
            while (!responseObserver.isTerminal() && channel.position() < channel.size()) {
              readBuffer.clear();
              channel.read(readBuffer);
      

      The channel should be closed before returning from get()

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: