When W is set to a positive value, write occurs but server returns an odd note that "No write has been done on this connection"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      MongoDB 1.7.5 ; doesn't occur with 1.6.5
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I suspect this is a Java driver issue rather than a core server .... I'll look into it with other drivers later to confirm.

      This is with Java Driver 2.4 against MongoDB 1.7.5, when setting any w value for WriteConcern the write succeeds, but the returned WriteResult is:

      { "n" : 0 , "connectionId" : 2 , "wnote" : "no write has been done on this connection" , "wtime" : 0 , "err" : null , "ok" : 1.0}

      See attached test case for demonstration.

        1. Test.java
          0.9 kB
          Brendan W. McAdams

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Brendan W. McAdams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: