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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.6
    • Component/s: Sharded Cluster
    • Labels:
    • Environment:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: