[SERVER-21426] Add writeConcern support to benchRun Created: 12/Nov/15  Updated: 16/Nov/16  Resolved: 08/Dec/15

Status: Closed
Project: Core Server
Component/s: Performance
Affects Version/s: None
Fix Version/s: 3.0.8, 3.2.1, 3.3.0

Type: Improvement Priority: Major - P3
Reporter: David Daly Assignee: David Daly
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-21514 Blacklist tests that use benchRun in ... Closed
related to SERVER-21587 Add readConcern support to benchRun Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Performance D (12/14/15)
Participants:

 Description   

benchRun supports writeCmd and readCmd options, but does not currently support write concern options such as

{w:1, j:1}

for the insert, update, and delete operations.



 Comments   
Comment by Githook User [ 09/Dec/15 ]

Author:

{u'username': u'dalyd', u'name': u'dalyd', u'email': u'david.daly@mongodb.com'}

Message: SERVER-21426:Add writeConcern support to benchRun

(cherry picked from commit 00ab4b4758ef78d974bbd73f9d4efc28736b426e)
Branch: v3.0
https://github.com/mongodb/mongo/commit/2a785c9376d051222047980e6df097aae0890b78

Comment by Githook User [ 08/Dec/15 ]

Author:

{u'username': u'dalyd', u'name': u'dalyd', u'email': u'david.daly@mongodb.com'}

Message: SERVER-21426:Add writeConcern support to benchRun

(cherry picked from commit 00ab4b4758ef78d974bbd73f9d4efc28736b426e)
Branch: v3.2
https://github.com/mongodb/mongo/commit/f3c89e61920e5b386cf882460507cefd1ad27d34

Comment by David Daly [ 08/Dec/15 ]

Requesting backport to facilitate performance testing.

Comment by Githook User [ 08/Dec/15 ]

Author:

{u'username': u'dalyd', u'name': u'dalyd', u'email': u'david.daly@mongodb.com'}

Message: SERVER-21426:Add writeConcern support to benchRun
Branch: master
https://github.com/mongodb/mongo/commit/00ab4b4758ef78d974bbd73f9d4efc28736b426e

Comment by Scott Hernandez (Inactive) [ 20/Nov/15 ]

This should take the whole "writeConcern" not the parts, like the command and js helpers do.

Comment by Scott Hernandez (Inactive) [ 20/Nov/15 ]

You can do this using commands now like so, without adding support for writeConcern for the "insert/update/remove" op types:

 [{op: "command", ns:"test", command:{ insert:"a", documents:[{_id:1}], writeConcern:{ w:3}, ordered: true}}]

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