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

Fix timeouts on JRuby

    • Fully Compatible

      [2020-11-27 06:34:56.243]
      [2020-11-27 06:34:56.243]   1) SCRAM-SHA auth mechanism negotiation when the configuration is specified in code when the user exists when the user only can use SCRAM-SHA-1 to authenticate when SCRAM-SHA-256 is specified as the auth mechanism fails with a Mongo::Auth::Unauthorized error
      [2020-11-27 06:34:56.243]      Failure/Error: raise Error::SocketTimeoutError, "#{e.class}: #{e} (for #{human_address})"
      [2020-11-27 06:34:56.243]      
      [2020-11-27 06:34:56.243]      Mongo::Error::SocketTimeoutError:
      [2020-11-27 06:34:56.243]        Errno::ETIMEDOUT: Connection timed out - Took more than 5.09 seconds to receive data (for 127.0.0.1:27017 (no TLS)) (on localhost:27017, connection 1:1)
      [2020-11-27 06:34:56.243]      # ./lib/mongo/socket.rb:422:in `map_exceptions'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/socket.rb:193:in `read'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/protocol/message.rb:232:in `deserialize'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/pending_connection.rb:116:in `block in handshake!'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/connection_common.rb:84:in `add_server_diagnostics'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/pending_connection.rb:114:in `block in handshake!'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/round_trip_time_averager.rb:36:in `measure'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/pending_connection.rb:113:in `block in handshake!'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server.rb:437:in `handle_handshake_failure!'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/pending_connection.rb:111:in `handshake!'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/pending_connection.rb:65:in `handshake_and_authenticate!'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/connection.rb:191:in `do_connect'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/connection.rb:166:in `connect!'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/connection_pool.rb:764:in `connect_connection'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/connection_pool.rb:368:in `check_out'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server/connection_pool.rb:589:in `with_connection'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/server.rb:429:in `with_connection'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/operation/shared/op_msg_or_command.rb:26:in `execute'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/auth/user/view.rb:141:in `block in user_query'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/client.rb:1026:in `with_session'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/auth/user/view.rb:140:in `user_query'
      [2020-11-27 06:34:56.243]      # ./lib/mongo/auth/user/view.rb:134:in `info'
      [2020-11-27 06:34:56.243]      # ./spec/mongo/auth/scram_negotiation_spec.rb:15:in `block in create_user!'
      [2020-11-27 06:34:56.243]      # ./spec/mongo/auth/scram_negotiation_spec.rb:13:in `block in create_user!'
      [2020-11-27 06:34:56.243]      # ./spec/mongo/auth/scram_negotiation_spec.rb:103:in `block in <main>'
      [2020-11-27 06:34:56.243]      # ./spec/lite_spec_helper.rb:122:in `block in /data/mci/e03d97ba4958c8a83eea8532824f2216/src/spec/lite_spec_helper.rb'
      [2020-11-27 06:34:56.243]      # ./spec/lite_spec_helper.rb:121:in `block in /data/mci/e03d97ba4958c8a83eea8532824f2216/src/spec/lite_spec_helper.rb'
      [2020-11-27 06:34:56.243]      # ./spec/lite_spec_helper.rb:104:in `block in /data/mci/e03d97ba4958c8a83eea8532824f2216/src/spec/lite_spec_helper.rb'
      [2020-11-27 06:34:56.243]      # ./spec/support/background_thread_registry.rb:62:in `block in /data/mci/e03d97ba4958c8a83eea8532824f2216/src/spec/support/background_thread_registry.rb'
      [2020-11-27 06:34:56.243]      # ------------------
      [2020-11-27 06:34:56.243]      # --- Caused by: ---
      [2020-11-27 06:34:56.243]      # IO::EAGAINWaitReadable:
      [2020-11-27 06:34:56.243]      #   Resource temporarily unavailable - errno backtraces disabled; run with -Xerrno.backtrace=true to enable
      [2020-11-27 06:34:56.243]
      

            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: