[DOCS-11758] Docs for SERVER-34991: JS tests doing transaction operations must use majority writeConcern for drops Created: 01/Jun/18  Updated: 29/Oct/23  Resolved: 25/Jun/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.0-rc1, 4.1.1

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-34991 JS tests doing transaction operations... Closed
Related
related to DOCS-11585 Mongos uses majority writeconcern for... Closed
is related to DOCS-11505 Document Transactions Closed
Participants:
Days since reply: 5 years, 33 weeks, 2 days ago
Epic Link: DOCS: 4.0 Server

 Description   

Description:

Updated the shell drop() helper (https://docs.mongodb.com/manual/reference/method/db.collection.drop/) to take parameters like write concern, e.g.,

testDB.testColl.drop({writeConcern: {w: "majority"}});

Previously the shell helper rejected any parameters. Committed to v4.0 and v4.1

Scope of changes:

  • drop command
  • drop helper
  • release notes
  • in addition, txn and txn-production-considerations – if run immediately before txn start (in lock section)

Impact to other docs outside of this product:

none

MVP:

Resources:

Engineering Ticket Description:

collation.js, misc_validation.js, do_txn_basic.js (per BF-9138) all need to be fixed to wait for both phases of two-phase drop to finish before starting transaction ops. Per SERVER-34372 and SERVER-33244, using majority write concern in an op will wait for the second phase of drop to finish before beginning the command, so that transaction ops don't run into lock conflict that cause the op (and entire transaction) to abort. Majority write concern should be added to the drop cmds.



 Comments   
Comment by Githook User [ 25/Jun/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11802,DOCS-11758,DOCS-11505: txn inmemory storage engine, create/drop collection before txn, data model updates, atomicity/isolation updates
Branch: master
https://github.com/mongodb/docs/commit/15b48d2a4aae22a8aa629548baed66e892e23d14

Comment by Githook User [ 11/Jun/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11758: drop takes options document
Branch: master
https://github.com/mongodb/docs/commit/41df190fc521c4a761cb2a81e96f0f0cf745de5c

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