Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-946

Multiple clients connected on differents replicaset randomly returns datas of each replicaset

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.5
    • Fix Version/s: None
    • Component/s: pecl-mongo
    • Environment:
      Linux Debian 64bits Squeeze
      PECL install mongo driver 1.4.5
      PHP 5.3.27-1~dotdeb.0
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      2 differents clients connected to 2 differents replicaset having the same name.
      Listing databases of the first client returns randomly the databases list of each replicaset.
      Connections pool of any client returns hosts of both replicaset.

      Sample :
      $analytics = new MongoClient('mongodb://mongo10,mongo11', array('replicaSet' => 'replicaSet'));
      $backend = new MongoClient('mongodb://mongo1,mongo2,mongo3', array('replicaSet' => 'replicaSet'));

      print_r($analytics->admin->command(array("listDatabases" => 1)));
      print_r($analytics->getConnections());

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 19 weeks, 6 days ago
                Date of 1st Reply: