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

EphemeralForTest does not unindex records in capped collections on rollback.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.11, 3.6.0-rc4
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4
    • Steps To Reproduce:
      Hide

      resmoke --suites replica_sets --storageEngine ephemeralForTest jstests/replsets/rollback_crud_op_sequences.js

      Show
      resmoke --suites replica_sets --storageEngine ephemeralForTest jstests/replsets/rollback_crud_op_sequences.js
    • Sprint:
      Storage 2017-11-13
    • Linked BF Score:
      0

      Description

      Part of the contract of RecordStore::cappedTruncateAfter is to call aboutToDeleteCapped on each document being removed. This callback results in the catalog/Collection object calling the appropriate unindex methods.

      However EphemeralForTestRecordStore only removes the documents.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: