-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
Use Case
As a... nodejs driver user
I want... to be able to use the bulkWrite inside a session with a global timeoutMS
This is the minimal code needed to reproduce the bug.
const { MongoClient } = require('mongodb'); require('dotenv').config({ quiet: true }); (async () => { const client = new MongoClient(process.env.MONGO_DB_URL, { timeoutMS: 1000 }); await client.connect(); const collection = client.db('parakey-development').collection('Test'); const session = await client.startSession(); await session.withTransaction(async () => { const result = await collection.bulkWrite([ { insertOne: { document: { name: 'Test 1' } } } ], { session }); console.log(result); }); })();
You'll find a complete repo here with the environment: https://github.com/Falsen/mongodb-driver-bug
User Experience
- What is the desired/expected outcome for the user once this ticket is implemented?
- If bug: What is the number of impacted customers? How severe is the impact? Is anyone blocked or broken?
Dependencies
- n/a
Risks/Unknowns
- n/a
Acceptance Criteria
Implementation Requirements
- Allow bulkWrites in sessions when timeoutMS has been set on the client
Testing Requirements
- n/a
Documentation Requirements
- n/a
Follow Up Requirements
- n/a