Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2538

Update index commit quorum test for changed server error message

    • Fully Compatible

      4.4.4 server appears to have changed the text of the error message such that the tests are now failing as follows:

      
      
      1) ./spec/mongo/index/view_spec.rb[1:3:1:1:2:1:2:1] @ 2021-02-26 01:34:37.267 +0000
      
      Mongo::Index::View#create_many when the indexes are created when passing multi-args when commit quorum options are specified on server versions >= 4.4 when commit_quorum value is not supported raises an exception
      
      RSpec::Expectations::ExpectationNotMetError: expected Mongo::Error::OperationFailure with message matching /Commit quorum cannot be satisfied with the current replica set configuration/, got #<Mongo::Error::OperationFailure: No write concern mode named 'unsupported-value' found in replica set configuration (79) (on localhost:27017)> with backtrace:
        # ./lib/mongo/operation/result.rb:343:in `raise_operation_failure'
        # ./lib/mongo/operation/result.rb:311:in `validate!'
        # ./lib/mongo/operation/shared/response_handling.rb:29:in `block (3 levels) in validate_result'
        # ./lib/mongo/operation/shared/response_handling.rb:96:in `add_server_diagnostics'
        # ./lib/mongo/operation/shared/response_handling.rb:28:in `block (2 levels) in validate_result'
        # ./lib/mongo/operation/shared/response_handling.rb:43:in `add_error_labels'
        # ./lib/mongo/operation/shared/response_handling.rb:27:in `block in validate_result'
        # ./lib/mongo/operation/shared/response_handling.rb:82:in `unpin_maybe'
        # ./lib/mongo/operation/shared/response_handling.rb:26:in `validate_result'
        # ./lib/mongo/operation/shared/executable.rb:46:in `block in execute'
        # ./lib/mongo/operation/shared/executable.rb:45:in `tap'
        # ./lib/mongo/operation/shared/executable.rb:45:in `execute'
        # ./lib/mongo/operation/shared/op_msg_or_command.rb:28:in `block in execute'
        # ./lib/mongo/server/connection_pool.rb:590:in `with_connection'
        # ./lib/mongo/server.rb:421:in `with_connection'
        # ./lib/mongo/operation/shared/op_msg_or_command.rb:26:in `execute'
        # ./lib/mongo/index/view.rb:221:in `block in create_many'
        # ./lib/mongo/client.rb:1026:in `with_session'
        # ./lib/mongo/index/view.rb:190:in `create_many'
        # ./spec/mongo/index/view_spec.rb:303:in `block (9 levels) in <top (required)>'
        # ./spec/mongo/index/view_spec.rb:302:in `block (8 levels) in <top (required)>'
        # ./spec/lite_spec_helper.rb:124:in `block (3 levels) in <top (required)>'
        # ./spec/lite_spec_helper.rb:123:in `block (2 levels) in <top (required)>'
        # ./spec/lite_spec_helper.rb:106:in `block (2 levels) in <top (required)>'
        # ./spec/support/background_thread_registry.rb:62:in `block (2 levels) in <top (required)>'
      
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support.rb:97:in `block in <module:Support>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support.rb:106:in `notify_failure'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:40:in `handle_failure'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:27:in `with_matcher'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/expectation_target.rb:65:in `to'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/expectation_target.rb:101:in `to'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/mongo/index/view_spec.rb:302:in `block (8 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:262:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:262:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:508:in `block in with_around_and_singleton_context_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:465:in `block in with_around_example_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:486:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:626:in `block in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/lite_spec_helper.rb:124:in `block (3 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/timeout-interrupt-0.3.0/lib/timeout_interrupt.rb:122:in `timeout'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/timeout-interrupt-0.3.0/lib/timeout_interrupt.rb:174:in `timeout'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/lite_spec_helper.rb:123:in `block (2 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/lite_spec_helper.rb:106:in `block (2 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/support/background_thread_registry.rb:62:in `block (2 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:629:in `run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:486:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:465:in `with_around_example_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:508:in `with_around_and_singleton_context_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:259:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:644:in `block in run_examples'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:640:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:640:in `run_examples'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:606:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:121:in `block (3 levels) in run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:121:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:121:in `block (2 levels) in run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/configuration.rb:2061:in `with_suite_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:116:in `block in run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/reporter.rb:74:in `report'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:115:in `run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:89:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:71:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:45:in `invoke'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/exe/rspec:4:in `<top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7/bin/rspec:23:in `load'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7/bin/rspec:23:in `<main>'
      
      2) ./spec/mongo/index/view_spec.rb[1:4:7:1:2:1] @ 2021-02-26 01:34:39.428 +0000
      
      Mongo::Index::View#create_one when providing commit_quorum option on server versions >= 4.4 when commit_quorum value is not supported raises an exception
      
      RSpec::Expectations::ExpectationNotMetError: expected Mongo::Error::OperationFailure with message matching /Commit quorum cannot be satisfied with the current replica set configuration/, got #<Mongo::Error::OperationFailure: No write concern mode named 'unsupported-value' found in replica set configuration (79) (on localhost:27017)> with backtrace:
        # ./lib/mongo/operation/result.rb:343:in `raise_operation_failure'
        # ./lib/mongo/operation/result.rb:311:in `validate!'
        # ./lib/mongo/operation/shared/response_handling.rb:29:in `block (3 levels) in validate_result'
        # ./lib/mongo/operation/shared/response_handling.rb:96:in `add_server_diagnostics'
        # ./lib/mongo/operation/shared/response_handling.rb:28:in `block (2 levels) in validate_result'
        # ./lib/mongo/operation/shared/response_handling.rb:43:in `add_error_labels'
        # ./lib/mongo/operation/shared/response_handling.rb:27:in `block in validate_result'
        # ./lib/mongo/operation/shared/response_handling.rb:82:in `unpin_maybe'
        # ./lib/mongo/operation/shared/response_handling.rb:26:in `validate_result'
        # ./lib/mongo/operation/shared/executable.rb:46:in `block in execute'
        # ./lib/mongo/operation/shared/executable.rb:45:in `tap'
        # ./lib/mongo/operation/shared/executable.rb:45:in `execute'
        # ./lib/mongo/operation/shared/op_msg_or_command.rb:28:in `block in execute'
        # ./lib/mongo/server/connection_pool.rb:590:in `with_connection'
        # ./lib/mongo/server.rb:421:in `with_connection'
        # ./lib/mongo/operation/shared/op_msg_or_command.rb:26:in `execute'
        # ./lib/mongo/index/view.rb:221:in `block in create_many'
        # ./lib/mongo/client.rb:1026:in `with_session'
        # ./lib/mongo/index/view.rb:190:in `create_many'
        # ./lib/mongo/index/view.rb:150:in `create_one'
        # ./spec/mongo/index/view_spec.rb:966:in `block (7 levels) in <top (required)>'
        # ./spec/mongo/index/view_spec.rb:965:in `block (6 levels) in <top (required)>'
        # ./spec/lite_spec_helper.rb:124:in `block (3 levels) in <top (required)>'
        # ./spec/lite_spec_helper.rb:123:in `block (2 levels) in <top (required)>'
        # ./spec/lite_spec_helper.rb:106:in `block (2 levels) in <top (required)>'
        # ./spec/support/background_thread_registry.rb:62:in `block (2 levels) in <top (required)>'
      
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support.rb:97:in `block in <module:Support>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support.rb:106:in `notify_failure'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:40:in `handle_failure'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:27:in `with_matcher'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/expectation_target.rb:65:in `to'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-expectations-3.9.4/lib/rspec/expectations/expectation_target.rb:101:in `to'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/mongo/index/view_spec.rb:965:in `block (6 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:262:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:262:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:508:in `block in with_around_and_singleton_context_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:465:in `block in with_around_example_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:486:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:626:in `block in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/lite_spec_helper.rb:124:in `block (3 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/timeout-interrupt-0.3.0/lib/timeout_interrupt.rb:122:in `timeout'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/timeout-interrupt-0.3.0/lib/timeout_interrupt.rb:174:in `timeout'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/lite_spec_helper.rb:123:in `block (2 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/lite_spec_helper.rb:106:in `block (2 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/spec/support/background_thread_registry.rb:62:in `block (2 levels) in <top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:455:in `instance_exec'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:390:in `execute_with'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:628:in `block (2 levels) in run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:350:in `call'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:629:in `run_around_example_hooks_for'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/hooks.rb:486:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:465:in `with_around_example_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:508:in `with_around_and_singleton_context_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example.rb:259:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:644:in `block in run_examples'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:640:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:640:in `run_examples'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:606:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `block in run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/example_group.rb:607:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:121:in `block (3 levels) in run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:121:in `map'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:121:in `block (2 levels) in run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/configuration.rb:2061:in `with_suite_hooks'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:116:in `block in run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/reporter.rb:74:in `report'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:115:in `run_specs'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:89:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:71:in `run'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/lib/rspec/core/runner.rb:45:in `invoke'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/rspec-core-3.9.3/exe/rspec:4:in `<top (required)>'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7/bin/rspec:23:in `load'
      /data/mci/f848e7209a77c06e324740c403a3c4aa/src/rubies/ruby-2.7/bin/rspec:23:in `<main>'
      
      

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: