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
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
auto_encryption_options: {
key_vault_namespace: key_vault_namespace,
kms_providers: local_kms_providers,
bypass_query_analysis: true
bypass_query_analysis: true,
extra_options: extra_options
},
database: SpecConfig.instance.test_db
)
Expand All @@ -64,7 +65,8 @@
SpecConfig.instance.addresses,
auto_encryption_options: {
key_vault_namespace: key_vault_namespace,
kms_providers: local_kms_providers
kms_providers: local_kms_providers,
extra_options: extra_options
},
database: SpecConfig.instance.test_db
)
Expand Down
6 changes: 3 additions & 3 deletions spec/mongo/retryable/client_backpressure_prose_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def started_events(command_name)
# Reset the parameter here as well as inline, so a failure part-way
# through the example cannot leave it set on the shared cluster.
after do
admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0)
root_authorized_admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0)
rescue Mongo::Error
# Ignore cleanup failures.
end
Expand All @@ -171,14 +171,14 @@ def started_events(command_name)
exponential_backoff_time = failing_insert_duration(1.0)

# Steps 6 and 7: have the server attach baseBackoffMS, then repeat.
admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 50)
root_authorized_admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 50)
with_base_backoff_ms_time = failing_insert_duration(1.0) do |err|
# Step 8: the driver parsed the field the server attached.
expect(err.result.base_backoff_ms).to eq(50)
end

# Step 9: disable baseBackoffMS on overload errors.
admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0)
root_authorized_admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0)

# Step 10: a run can never be faster than the sum of its backoffs. With
# jitter pinned to 1 the default backoffs are 0.2 + 0.4 = 0.6s and the
Expand Down
Loading