[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" Created: 31/Jan/11  Updated: 12/Jul/16  Resolved: 31/Jan/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.6

Type: Bug Priority: Major - P3
Reporter: Brendan W. McAdams Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDB 1.7.5 ; doesn't occur with 1.6.5


Attachments: Text File Test.java    
Operating System: ALL
Participants:

 Description   

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.



 Comments   
Comment by auto [ 31/Jan/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: fix GLE with w= for non-master servers SERVER-2443
https://github.com/mongodb/mongo/commit/57954be3a717fdab9246d0f7cd0b1068e1e715c7

Generated at Thu Feb 08 02:59:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.