For retryable writes, sessionId, txnNumber, and stmtId need to be added as optional fields in an oplog entry.