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

Fix JRuby close timeout when populating

    • Type: Icon: Task Task
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JRuby, Tests
    • Labels:
      None

      [2020-12-06 19:52:43.004]
      [2020-12-06 19:52:43.004]   1) Cmap must be able to start a pool with minPoolSize connections (pool-create-min-size.yml) emits the correct number of events
      [2020-12-06 19:52:43.004]      Failure/Error:
      [2020-12-06 19:52:43.004]        @lock.synchronize do
      [2020-12-06 19:52:43.004]          # If stop_populator is called while populate is running, there may be
      [2020-12-06 19:52:43.004]          # connections waiting to be connected, connections which have not yet
      [2020-12-06 19:52:43.004]          # been moved to available_connections, or connections moved to available_connections
      [2020-12-06 19:52:43.004]          # but not deleted from pending_connections. These should be cleaned up.
      [2020-12-06 19:52:43.004]          until @pending_connections.empty?
      [2020-12-06 19:52:43.004]            connection = @pending_connections.take(1).first
      [2020-12-06 19:52:43.004]            connection.disconnect!
      [2020-12-06 19:52:43.004]            @pending_connections.delete(connection)
      [2020-12-06 19:52:43.004]          end
      [2020-12-06 19:52:43.004]      
      [2020-12-06 19:52:43.004]      ExampleTimeout:
      [2020-12-06 19:52:43.004]        execution expired
      [2020-12-06 19:52:43.004]      # ./lib/mongo/server/connection_pool.rb:634:in `stop_populator'
      [2020-12-06 19:52:43.004]      # ./lib/mongo/server/connection_pool.rb:485:in `clear'
      [2020-12-06 19:52:43.004]      # ./lib/mongo/server.rb:262:in `disconnect!'
      [2020-12-06 19:52:43.004]      # ./spec/support/common_shortcuts.rb:274:in `block in register_server'
      [2020-12-06 19:52:43.004]      # ./spec/support/local_resource_registry.rb:27:in `block in close_all'
      [2020-12-06 19:52:43.004]      # ./spec/support/local_resource_registry.rb:23:in `close_all'
      [2020-12-06 19:52:43.004]      # ./spec/spec_helper.rb:28:in `block in /data/mci/a9217eafc67c7b8bb51eec133f2c3562/src/spec/spec_helper.rb'
      [2020-12-06 19:52:43.004]      # ./spec/lite_spec_helper.rb:124:in `block in /data/mci/a9217eafc67c7b8bb51eec133f2c3562/src/spec/lite_spec_helper.rb'
      [2020-12-06 19:52:43.004]      # ./spec/lite_spec_helper.rb:123:in `block in /data/mci/a9217eafc67c7b8bb51eec133f2c3562/src/spec/lite_spec_helper.rb'
      [2020-12-06 19:52:43.004]      # ./spec/lite_spec_helper.rb:106:in `block in /data/mci/a9217eafc67c7b8bb51eec133f2c3562/src/spec/lite_spec_helper.rb'
      [2020-12-06 19:52:43.004]      # ./spec/support/background_thread_registry.rb:62:in `block in /data/mci/a9217eafc67c7b8bb51eec133f2c3562/src/spec/support/background_thread_registry.rb'
      [2020-12-06 19:52:43.004]
      

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: