-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Cluster Scalability
-
Fully Compatible
-
ALL
The condition to enable WWSKWID is incorrect in CollectionRoutingInfoTargeter::targetUpdate and CollectionRoutingInfoTargeter::targetDelete with opCtx->isRetryableWrite() && !TransactionRouter::get(opCtx). This condition also includes retryable internal transactions without a checked-out session to be run. It should be replaced with opCtx->getTxnNumber() && !opCtx->inMultiDocumentTransaction() which guarantees retryable writes condition without association with any kind of transaction.