Endless loop in saveChunks

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0
    • Affects Version/s: 2.7.2
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
            Reporter:
            Achim Weigel
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: