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

collMod should support writeConcern

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      (function() {
          'use strict';
          assert.commandWorked(db.collmod.createIndex({x: 1}, {expireAfterSeconds: 3}));
          assert.commandWorked(
              db.runCommand({collMod: "collmod", index: {keyPattern: {x:1}, expireAfterSeconds: 6}, writeConcern: {w: 4, wtimeout: 100}}));
      })()
      

      Show
      ( function () { 'use strict' ; assert.commandWorked(db.collmod.createIndex({x: 1}, {expireAfterSeconds: 3})); assert.commandWorked( db.runCommand({collMod: "collmod" , index: {keyPattern: {x:1}, expireAfterSeconds: 6}, writeConcern: {w: 4, wtimeout: 100}})); })()
    • Sprint:
      Storage NYC 2018-07-02

      Description

      Currently trying to specify a writeConcern with collMod results in:

      2016-07-21T14:06:42.825-0400 E QUERY    [thread1] Error: command failed: {
      	"ok" : 0,
      	"errmsg" : "unknown option to collMod: writeConcern",
      	"code" : 72
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ben.judd Ben Judd
              Reporter:
              geert.bosch Geert Bosch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: