Flushing Simple8bBuilder leaves state

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-11-01
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Flushing Simple8bBuilder should write out all pending values and reset the state as unrelated data may be written to the BSON Column binary before we start appending new values to the Simple8bBuilder.

      Currently _lastValueInPrevWord is kept so RLE may restart when appending from the wrong base value:

      https://github.com/mongodb/mongo/blob/19cf54eb17cf933dfabf5a553660d93319e51713/src/mongo/bson/util/simple8b.cpp#L434

      https://github.com/mongodb/mongo/blob/19cf54eb17cf933dfabf5a553660d93319e51713/src/mongo/bson/util/simple8b.cpp#L396

            Assignee:
            Henrik Edin
            Reporter:
            Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: