Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

fix(transactions): do not send txnNumber for non-write commands #308

Merged
merged 4 commits into from
May 11, 2018

Conversation

daprahamian
Copy link
Contributor

We started sending txnNumber for non-transaction non-retryable
commands, which causes errors against transaction-enabled servers

Fixes NODE-1466

We started sending txnNumber for non-transaction non-retryable
commands, which causes errors against transaction-enabled servers

Fixes NODE-1466
@daprahamian daprahamian requested a review from mbroadst May 10, 2018 18:10
Copy link

@jyemin jyemin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I'm not knowledgable enough about the driver to approve the change. Deferring to @mbroadst for that.

@ShaneHarvey
Copy link

Hmmm, I think this should have been caught in at least one of the transactions spec tests. I'll check and add one that confirms drivers don't send txnNumber for non-transaction commands.

For now, can you add a test to confirm your fix?

@daprahamian
Copy link
Contributor Author

@ShaneHarvey will do.

@daprahamian
Copy link
Contributor Author

@ShaneHarvey added unit tests

@daprahamian daprahamian merged commit eb67b1a into master May 11, 2018
@daprahamian daprahamian deleted the NODE-1466/non-write-txn-number branch May 11, 2018 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants