Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2187

Decide what keys to support in command line write concern

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The docs, help text, and code for --writeConcern are inconsistent.

      • Docs: say it takes a "<document>", but says defaults to 'majority`, rather than {"w": "majority"}. Says it supports "w options" which implies only "w" and not other write concern options.
      • The command line help text says it takes "<write concern"> and gives two examples:
        --writeConcern majority
        --writeConcern '{w: 3, wtimeout: 500, fsync: true, j: true}'
        
      • The Go driver doesn't support fsync, nor is it documented in server docs. Supposedly, it works the same as "j" for servers with journaling (see DRIVERS-125).

      We should decide exactly which keys we support (now excluding 'fsync') and ensure that code, docs and CLI help text all agree.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: