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

Regression in GridFS leads to serious loss of data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • # Replies:
      4
    • Last comment by Customer:
      true

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 23 weeks, 4 days ago
                Date of 1st Reply: