NODE-5659ClosedWorks as Designed

Driver retries a transaction operation when a DuplicateKeyError is hit

h3. What problem are you facing? I hit this issue in a test where I attempt to insert multiple copies of the same document in a single transaction. I can see that one of the insert operations fails with a DuplicateKeyError, but it seems that when the transaction is run using the driver's `withTransaction` wrapper, it keeps retrying the transaction even though the error shouldn't really be considered "transient" (ie. this operation will always fail no matter what) h3. What driver and relevant

Affected Versions
Versions known to exhibit this issue
5.8.16.1.0
Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Transactions
Labels
Tags and classification
external-user