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

Regression in GridFS leads to serious loss of data

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.0.1
    • Affects Version/s: 2.0
    • Component/s: None
    • None
    • Fully Compatible

      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.

        1. gridfs-fix.patch
          3 kB
          Alexey Borzenkov

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

              Created:
              Updated:
              Resolved: