[SERVER-15267] Add more information to writeconcern timeout error Created: 16/Sep/14  Updated: 10/Dec/14  Resolved: 18/Sep/14

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

Type: Improvement Priority: Trivial - P5
Reporter: Jussi Jaaskelainen Assignee: Eric Milkie
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-15268 Write Commands should return replicat... Closed
Participants:

 Description   

When I insert single document with writeconcern w: with value bigger than my replSet count and I use wtimeout, I (of course) get error message:

WriteResult({
	"nInserted" : 1,
	"writeConcernError" : {
		"code" : 64,
		"errInfo" : {
			"wtimeout" : true
		},
		"errmsg" : "waiting for replication timed out"
	}
})

It would be nice to have value there, what tell how many acknowledges WAS returned before wtimeout occurred.

Like:

WriteResult({
	"nInserted" : 1,
        "nAcknowledged" : 3,
	"writeConcernError" : {
		"code" : 64,
		"errInfo" : {
			"wtimeout" : true
		},
		"errmsg" : "waiting for replication timed out"
	}
})



 Comments   
Comment by Eric Milkie [ 18/Sep/14 ]

Please follow the linked ticket for updates.

Generated at Thu Feb 08 03:37:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.