Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11937

WriteConcern argument description is incorrect for the moveChunk command

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.4.0
    • Affects Version/s: 3.4.0
    • Component/s: Server
    • Labels:
      None

      Description

      Here we say this:

      writeConcern document Optional. A document that expresses the write concern that the _secondaryThrottle will use to wait for secondaries during the chunk migration. Any specified writeConcern implies _secondaryThrottle and will take precedent over a contradictory _secondaryThrottle setting.

      This implies that you can specify any combination of writeConcern and _secondaryThrottle arguments, and that should work. However, the server will only accept the command with writeConcern if _secondaryThrottle is not set to false:

      > db.runCommand({moveChunk:"test.docs", find: {x:60}, to: "shard02", _secondaryThrottle:false, writeConcern:{"w":3}})
      {
          "code" : 12,
          "ok" : 0,
          "errmsg" : "Cannot specify write concern when secondaryThrottle is not set"
      }
      

      Perhaps the following line needs to be removed:

      Any specified writeConcern implies _secondaryThrottle and will take precedent over a contradictory _secondaryThrottle setting.

      Scope of changes (files that need work and how much)

      Impact to other docs outside of this product

      MVP (work and date?)

      Resources (e.g. Scope Docs, Invision)

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 37 weeks, 4 days ago