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

it seems that ShardingPoolManager::check_connection_health does not support authentication

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.6
    • Affects Version/s: 1.8.2
    • Component/s: Sharded Cluster
    • Environment:
      ubuntu, mongod 2.2.2, amazon ec2

      https://github.com/mongodb/mongo-ruby-driver/blob/1.8.3.rc0/lib/mongo/util/sharding_pool_manager.rb#L28

      Using @client['config'] fails if authentication is required at the mongos.
      more, it fails silently due to the

      rescue Mongo::OperationFailure

      block below...

      We did a patch and its now working

      config_db = @client['config']
      config_db.authenticate('...','...')
      seeds = config_db['mongos'].find.to_a.map{|doc| doc['_id']}
      

      Thanks
      Boaz

            Assignee:
            brandon.black@10gen.com Brandon Black
            Reporter:
            boaz@moment.me Boaz Adato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: