Regression in GridFS leads to serious loss of data

XMLWordPrintableJSON

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

      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.

              Assignee:
              Bernie Hackett
              Reporter:
              Alexey Borzenkov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: