Add spec test for unpinning after non-transient abort error
The test already passes due to changes from
}
]
},
+ {
+ "description": "unpin after non-transient error on abort",
+ "operations": [
+ {
+ "name": "startTransaction",
+ "object": "session0"
+ },
+ {
+ "name": "insertOne",
+ "object": "collection0",
+ "arguments": {
+ "document": {
+ "x": 1
+ },
+ "session": "session0"
+ }
+ },
+ {
+ "name": "targetedFailPoint",
+ "object": "testRunner",
+ "arguments": {
+ "session": "session0",
+ "failPoint": {
+ "configureFailPoint": "failCommand",
+ "mode": {
+ "times": 1
+ },
+ "data": {
+ "failCommands": [
+ "abortTransaction"
+ ],
+ "errorCode": 91
+ }
+ }
+ }
+ },
+ {
+ "name": "abortTransaction",
+ "object": "session0"
+ },
+ {
+ "name": "assertSessionUnpinned",
+ "object": "testRunner",
+ "arguments": {
+ "session": "session0"
+ }
+ }
+ ]
+ },
{
"description": "unpin when a new transaction is started",
"operations": [
