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

it seems that ShardingPoolManager::check_connection_health does not support authentication

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.8.2
    • 1.8.6
    • Sharded Cluster
    • ubuntu, mongod 2.2.2, amazon ec2

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: