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

Strange upsert mutateIn limit of no more than 17 properties per doc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Critical
    • None
    • 2.6.0
    • None
    • None
    • debian, mint, mac
    • 1

    Description

      Hi there,

      we are facing strange bug in your PHP plugin, we have tested against the latest version of extension too 2.6.0 (your JIRA affected versions field doesn't allow to select it).

      Basically we can't upsert more than 17 object properties per doc using mutateIn operation (works with less but not with more), see below is how you can reproduce it:

      $authenticator = new \Couchbase\PasswordAuthenticator();
      $authenticator->username('user')->password('pass');
       
      $cluster = new \Couchbase\Cluster("couchbase://127.0.0.1");
      $cluster->authenticate($authenticator);
      $bucket = $cluster->openBucket('bucket_name');
       
      $mutateIn = $bucket->mutateIn('test');
       
      for($i=1;$i<= 17;$i++)
      {
      	$mutateIn->upsert('key_'.$i, 'val_'.$i, true);
      }
      $res = $mutateIn->execute();
      

      Once run you will get:

      LCB_SUBDOC_INVALID_COMBO: An invalid combination of commands was specified

      Please advise.

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            marcin Marcin
            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