Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-283

Unable to connect to second cluster while using same bucket name in PHP configuration cache

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.0-dp1
    • None
    • library
    • Security Level: Public
    • None

    Description

      Environment:
      1. PHP SDK 1.1.5
      2. CentOs 6.4
      3. Set up the couchbase cache config path in php.ini.
      4. Couchbase Enterprise 2.1.0

      Test scenario:
      1. Set up two separate clusters, representing two separate data centers.
      2. Set up the cache config path in php.ini (from another location outside
      the clusters)
      3. Set up a bucket (any type), with the same name on both clusters.
      4. Create a script that first loads some data on cluster one, then
      immediately loads the same on cluster two.

      Expected Results:
      The data should be loaded to cluster two.

      Actual Results:
      The data never makes it to cluster two because the cache file is by bucket
      name. In the cache file, there is the map of just the first cluster.
      Subsequent sets and gets use the cache file no matter what hosts are used
      in the connection (in code).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            brett19 Brett Lawson
            larry Larry Liu [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty