Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-693

inserting into bucket 1 second after bucket creation gives "temporary failure"

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • lcb, library
    • None
    • 1

    Description

      inserting into bucket 1 second after bucket creation gives "temporary failure"

      inserting into bucket 1.1 seconds after bucket creation succeeds.

      Reproducer is attached.  The time to wait after bucket creation is at line 54.

      Attachments

        Issue Links

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

          Activity

            TemporaryFailureError: temporary failure

                at _getWrappedErr (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/errors.js:827:14)

                at Object.wrapLcbErr (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/errors.js:1008:20)

                at /Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:101:24 {

              cause: LibcouchbaseError

            { code: 207 }

            ,

              context: KeyValueErrorContext {

                status_code: 134,

                opaque: 2,

                cas: CbCas

            { '0': <Buffer 00 00 00 00 00 00 00 00> }

            ,

                key: '1234',

                bucket: 'hello',

                collection: '',

                scope: '',

                context: '',

                ref: ''

              }

            }

            michael.reiche Michael Reiche added a comment - TemporaryFailureError: temporary failure     at _getWrappedErr (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/errors.js:827:14)     at Object.wrapLcbErr (/Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/errors.js:1008:20)     at /Users/michaelreiche/g2/docs-sdk-nodejs/modules/devguide/examples/nodejs/node_modules/couchbase/lib/collection.js:101:24 {   cause: LibcouchbaseError { code: 207 } ,   context: KeyValueErrorContext {     status_code: 134,     opaque: 2,     cas: CbCas { '0': <Buffer 00 00 00 00 00 00 00 00> } ,     key: '1234',     bucket: 'hello',     collection: '',     scope: '',     context: '',     ref: ''   } }

            Maybe these should be automatically retried if the timeout for operation has not yet been reached.  Depending on what the TemporaryFailure was, the retry could occur in the server or in the client.  If the retry occurred in the server, the client would not even need to be aware that there was a retry.  If the retry occurred in the client, it would need to occur such that the callback was not called except for the final invocation.

            michael.reiche Michael Reiche added a comment - Maybe these should be automatically retried if the timeout for operation has not yet been reached.  Depending on what the TemporaryFailure was, the retry could occur in the server or in the client.  If the retry occurred in the server, the client would not even need to be aware that there was a retry.  If the retry occurred in the client, it would need to occur such that the callback was not called except for the final invocation.
            brett19 Brett Lawson added a comment -

            Probably fixed in some previous version of libcouchbase.

            brett19 Brett Lawson added a comment - Probably fixed in some previous version of libcouchbase.

            People

              brett19 Brett Lawson
              michael.reiche Michael Reiche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty