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

collMod should support writeConcern

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • Labels:
    • ALL
    • 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}})); })()
    • Storage NYC 2018-07-02

      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
      }
      

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

              Created:
              Updated:
              Resolved: