Operational Defect Database

BugZero found this defect 47 days ago.

MongoDB | 2629374

Cursor contains txnNumber when created from a retryable write (BulkWrite)

Last update date:

4/2/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0 Required

Description:

Info

Drivers discovered in testing for PM-1452 that a cursor created by a retryable bulkWrite will not be able to be getMore'd. This is because the cursor grabs the txnNumber off of the opCtx when it is created, assuming that the getMore always comes from a transaction since before bulkWrite this was the case. When a cursor is created like this you cannot run getMore without a txnNumber, and if you run it with one it will fail due to not being a retryable command, so the cursor information is lost. Since cursors can now be created from a retryable write we need to fix this behavior.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

In Progress

Learn More

Search:

...