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

Crash when trying to insert with Durability option set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.1
    • 3.2.0
    • library
    • None
    • 1

    Description

      Hi,

      There is a crash when trying to insert or upsert a document with a durability option.

      I've attached an example code that creates a test bucket and tries two inserts, the last one with durability option.

      The code attached uses the couchbase community 6.6.0 docker image.

       

      The crash is as following:

      [cb,WARN] (server L:386 I:2919601397) <couchbase:11210> (CTX=0x5595bbeea440,memcached,SRV=0x5595bbf21c40,IX=0) Received server error EINVAL (0x4) on packet: OP=0x2, RC=0x4, SEQ=1

      Fatal error: Uncaught Couchbase\BindingsException: LCB_ERR_KVENGINE_INVALID_PACKET (1031) in /usr/src/sib-hooks-proxy-api/test.php:34
      Stack trace:
      #0 /usr/src/sib-hooks-proxy-api/test.php(34): Couchbase\Collection->insert('6102b46741a86', Array, Object(Couchbase\InsertOptions))
      #1 {main}
      thrown in /usr/src/sib-hooks-proxy-api/test.php on line 34

       

       

      Attachments

        Issue Links

          For Gerrit Dashboard: PCBC-782
          # Subject Branch Project Status CR V

          Activity

            People

              avsej Sergey Avseyev
              l.potherat Léonard POTHERAT
              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