Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-271

Regression in GridFS leads to serious loss of data

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • None
    • None
    • Fully Compatible

    Description

      The GridIn.write change in 2.0 introduced a serious regression that causes loss of data when you write strings and at any time you have _buffer filled up completely, any data after that point will be ignored. Since my code was chunking write calls with chunk_size (I needed to do additional data processing before writing to GridFS) it meant that any file >256KB became truncated.

      Please fix this ASAP with the patch attached, which fixes the problem and improves chunking with writes.

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            snaury Alexey Borzenkov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: