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

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"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 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

      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 Eliot Horowitz (Inactive)
            Reporter:
            brendan Brendan W. McAdams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: