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

convertToCappedCollection command on secondaries does not work during a bg index build

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • 2.5.3
    • Index Maintenance
    • ALL

    Description

      Based on conversation with milkie - not 100% sure if this is correct behavior or not (or possibly just a normal consequence of yielding/timing) so i'm opening this to track efforts to probe further.

      • on a standalone mongod, create a collection and fill it with test data (1M docs)
      • run createIndex with {background:true}
      • immediately after the createIndex command, run a convertToCapped command on the same collection.

      expected:

      • the background index build should abort and convertToCapped should run

      actual:

      • the background index command runs to completion, and the convertToCapped runs only after the index build is complete.

      Attachments

        Activity

          People

            milkie@mongodb.com Eric Milkie
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: