Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-506

Endless loop in saveChunks

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0
    • Affects Version/s: 2.7.2
    • Component/s: GridFS
    • None

      Hello,

      we are using Java Driver version 2.7.2. When we are calling

      GridFSInputFile.saveChunks( long chunkSize )

      accidentally with a chunkSize of 0 the program goes into an endless loop over

      while ( bytesRead >= 0 )

      {...}

      in that method consuming all CPU time.

      Best Regards,
      Achim

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            achim.weigel@sap.com Achim Weigel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: