[SERVER-30686] Integrate retryWrites into mongo shell's SessionOptions Created: 16/Aug/17  Updated: 30/Oct/23  Resolved: 30/Aug/17

Status: Closed
Project: Core Server
Component/s: Shell, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.13

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: sharding36-passthrough-testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-30080 Basic LogicalSession support in the s... Closed
depends on SERVER-29913 bulk_api.js should use runCommand() r... Closed
Documented
is documented by DOCS-10741 Docs for SERVER-30686: Integrate retr... Closed
Duplicate
is duplicated by SERVER-28921 Implement test support for retryabili... Closed
Related
related to SERVER-30886 DB.prototype.copyDatabase() doesn't i... Closed
related to SERVER-31296 Review mongo shell implementation of ... Closed
is related to SERVER-30903 "use local" shell helper failed with ... Closed
Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-09-11
Participants:

 Description   
  • Introduce _DummyDriverSession object that forwards calls to Mongo.prototype.runCommand() with its arguments unmodified. This allows the codepaths in DB and DBCollection to go through the session object regardless of whether sessions are actually being used or not.
  • Add SessionOptions#shouldRetryWrites() and SessionOptions#setRetryWrites() methods.
  • Add retryable_writes_jscore_passthrough_WT task on the following build variants:
    • Enterprise RHEL 6.2
    • Enterprise RHEL 6.2 (inMemory)
    • Windows 2008R2 DEBUG
    • SSL OS X 10.10
    • ASAN Enterprise SSL Ubuntu 16.04 DEBUG
    • UBSAN Enterprise Ubuntu 16.04 DEBUG
    • Enterprise RHEL 6.2 DEBUG Code Coverage


 Comments   
Comment by Githook User [ 30/Aug/17 ]

Author:

{'name': 'Max Hirschhorn', 'username': 'visemet', 'email': 'max.hirschhorn@mongodb.com'}

Message: SERVER-30686 Add retryable_writes_jscore_passthrough_WT task.
Branch: master
https://github.com/mongodb/mongo/commit/03055999749ed577af14d5d9cc969f616b4c3196

Comment by Githook User [ 30/Aug/17 ]

Author:

{'name': 'Max Hirschhorn', 'username': 'visemet', 'email': 'max.hirschhorn@mongodb.com'}

Message: SERVER-30686 Add support for retryWrites=true in the mongo shell.
Branch: master
https://github.com/mongodb/mongo/commit/45d4ddb4aaaf5b0bbe36442659c76be494a92af0

Comment by Githook User [ 30/Aug/17 ]

Author:

{'name': 'Max Hirschhorn', 'username': 'visemet', 'email': 'max.hirschhorn@mongodb.com'}

Message: SERVER-30686 Wire up SessionOptions in more places.

Creates a _DummyDriverSession instance when startSession() isn't called
so that the DB and DBCollection implementations can rely on the same
session-related APIs.
Branch: master
https://github.com/mongodb/mongo/commit/e9f25df1ee004319caa493fe4d4b5c34948df9f3

Generated at Thu Feb 08 04:24:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.