diff --git a/source/transactions/tests/unified/mongos-recovery-token.json b/source/transactions/tests/unified/mongos-recovery-token.json index 00909c4218..bb88aa16bd 100644 --- a/source/transactions/tests/unified/mongos-recovery-token.json +++ b/source/transactions/tests/unified/mongos-recovery-token.json @@ -232,7 +232,8 @@ "id": "client1", "useMultipleMongoses": true, "uriOptions": { - "heartbeatFrequencyMS": 30000 + "heartbeatFrequencyMS": 30000, + "appName": "transactionsClient" }, "observeEvents": [ "commandStartedEvent" @@ -299,7 +300,8 @@ "isMaster", "hello" ], - "closeConnection": true + "closeConnection": true, + "appName": "transactionsClient" } } } diff --git a/source/transactions/tests/unified/mongos-recovery-token.yml b/source/transactions/tests/unified/mongos-recovery-token.yml index f8606f0782..9eed826ec5 100644 --- a/source/transactions/tests/unified/mongos-recovery-token.yml +++ b/source/transactions/tests/unified/mongos-recovery-token.yml @@ -150,6 +150,7 @@ tests: # flight heartbeat refreshes the first mongoes' SDAM state in between # the initial commitTransaction and the retry attempt. heartbeatFrequencyMS: 30000 + appName: &appName transactionsClient observeEvents: - commandStartedEvent - database: @@ -195,6 +196,7 @@ tests: - isMaster - hello closeConnection: true + appName: *appName # The first commitTransaction sees a retryable connection error due to # the fail point and also fails on the server. The retry attempt on a # new mongos will wait for the transaction to timeout and will fail diff --git a/source/transactions/tests/unified/pin-mongos.json b/source/transactions/tests/unified/pin-mongos.json index 5f2ecca5c1..c96f3f341f 100644 --- a/source/transactions/tests/unified/pin-mongos.json +++ b/source/transactions/tests/unified/pin-mongos.json @@ -1249,7 +1249,8 @@ "id": "client1", "useMultipleMongoses": true, "uriOptions": { - "heartbeatFrequencyMS": 30000 + "heartbeatFrequencyMS": 30000, + "appName": "transactionsClient" }, "observeEvents": [ "commandStartedEvent" @@ -1316,7 +1317,8 @@ "isMaster", "hello" ], - "closeConnection": true + "closeConnection": true, + "appName": "transactionsClient" } } } diff --git a/source/transactions/tests/unified/pin-mongos.yml b/source/transactions/tests/unified/pin-mongos.yml index 596dc2d00d..4869ac3c16 100644 --- a/source/transactions/tests/unified/pin-mongos.yml +++ b/source/transactions/tests/unified/pin-mongos.yml @@ -527,6 +527,7 @@ tests: # flight heartbeat refreshes the first mongoes' SDAM state in between # the insert connection error and the single commit attempt. heartbeatFrequencyMS: 30000 + appName: &appName transactionsClient observeEvents: - commandStartedEvent - database: @@ -572,6 +573,7 @@ tests: - isMaster - hello closeConnection: true + appName: *appName - object: *collection1 name: insertOne