Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29904

don't generate convertToCapped oplog entries

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.10
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Storage 2017-07-10
    • 0

      convertToCapped is implemented as a temporary collection creation, insertion of all existing records and then rename-in-place. However, instead of using calling existing catalog-level operations and letting them deal with replication, convertToCapped has its own oplog entry and calls lower level operations directly while suppressing normal replication.

      This adds extra maintenance work and upgrade complexities for supporting UUIDs. Removing the special purpose code simplifies, fixes some potential unhandled error conditions (WriteConflictException) and allows for normal rollback.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: