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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.5
    • Affects Version/s: 2.5.3
    • Component/s: Index Maintenance
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Eric Milkie
            Reporter:
            Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: