Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 0 additions & 101 deletions test/spec/client-backpressure/backpressure-retry-loop.yml.template

This file was deleted.

This file was deleted.

4 changes: 3 additions & 1 deletion test/spec/client-backpressure/getMore-retried.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{
"client": {
"id": "client0",
"useMultipleMongoses": false,
"observeEvents": [
"commandStartedEvent",
"commandFailedEvent",
Expand All @@ -19,7 +20,8 @@
},
{
"client": {
"id": "failPointClient"
"id": "failPointClient",
"useMultipleMongoses": false
}
},
{
Expand Down
32 changes: 17 additions & 15 deletions test/spec/client-backpressure/getMore-retried.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ runOnRequirements:
createEntities:
- client:
id: &client client0
useMultipleMongoses: false
observeEvents:
- commandStartedEvent
- commandFailedEvent
- commandSucceededEvent
- client:
id: &failPointClient failPointClient
useMultipleMongoses: false
- database:
id: db
client: *client
Expand All @@ -26,7 +28,7 @@ initialData:
- { a: 1 }
- { a: 2 }
- { a: 3 }

tests:
- description: "getMores are retried"
operations:
Expand Down Expand Up @@ -60,27 +62,27 @@ tests:
events:
- commandStartedEvent:
commandName: find
- commandSucceededEvent:
- commandSucceededEvent:
commandName: find
# first attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# second attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# third attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# success
- commandStartedEvent:
commandName: getMore
- commandSucceededEvent:
- commandSucceededEvent:
commandName: getMore

- description: "getMores are retried maxAttempts=5 times"
Expand Down Expand Up @@ -111,39 +113,39 @@ tests:
events:
- commandStartedEvent:
commandName: find
- commandSucceededEvent:
- commandSucceededEvent:
commandName: find
# first attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# second attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# third attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# fourth attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# fifth attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
# final attempt
- commandStartedEvent:
commandName: getMore
- commandFailedEvent:
- commandFailedEvent:
commandName: getMore
- commandStartedEvent:
commandName: killCursors
- commandSucceededEvent:
commandName: killCursors
- commandSucceededEvent:
commandName: killCursors
Loading