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

Couchbase.so - prepend/append integer subsequently only returns last value on "get"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.3, 1.1.0-dp1
    • 1.0
    • library
    • Security Level: Public
    • None
    • OS X 10.7, PHP 5.3.8, Apache 2.2.21, Couchbase.so 1.0.0, Couchbase Server 1.8.0

    Description

      Using couchbase.so, when I prepend or append an integer to an existing integer value, and subsequently "get" that key, only the most recently appended/prepended value is returned instead of the entire value of the key. Using the console I can verify that the actual server held value for the key is correct, it's just couchbase.so that doesn't return the correct value on "get". This problem seems to be isolated to integer values (which is why it hasn't been caught by your PHP Tests, which only tests string value appending/prepending).

      Example PHP:

      if(!$cb->get("Test6"))

      { $cb->add("Test6",rand()); }

      $cb->prepend("Test6", rand().",");
      echo "<pre>";
      $vars = $cb->get("Test6");
      print_r($vars);

      only outputs a single value, no matter how often you reload and re-execute...

      However, when you check via console:

      get Test6
      VALUE Test6 1 41
      1407971623,1474693532,101417852,331145725
      END
      get Test6
      VALUE Test6 1 41
      1407971623,1474693532,101417852,331145725
      END
      get Test6
      VALUE Test6 1 230
      1582106666,1487511791,1969168774,1956718300,643137240,1558088382,719325115,1737977192,922644553,1697835667,363523321,175374370,2004964137,92468065,1381011077,1588161021,1237581990,31693720,1407971623,1474693532,101417852,331145725
      END

      See also http://www.couchbase.com/forums/thread/php-ext-get-after-prepend-or-append-only-returns-last-value-prependedappended

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            mssteuer Michael Steuer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty