Skip to content

Commit

Permalink
Set appName when failPoint set on 'hello' command
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Poliakov committed Jan 9, 2025
1 parent 5943c5f commit 8c528e8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions source/transactions/tests/unified/mongos-recovery-token.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions source/transactions/tests/unified/mongos-recovery-token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions source/transactions/tests/unified/pin-mongos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions source/transactions/tests/unified/pin-mongos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -572,6 +573,7 @@ tests:
- isMaster
- hello
closeConnection: true
appName: *appName
-
object: *collection1
name: insertOne
Expand Down

0 comments on commit 8c528e8

Please sign in to comment.