Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-32244

[BucketOp] Delete and get behaviour in case of non-existent keys

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      In Eventing, when one tries to delete a key which doesn’t exist from a bucket, we throw an exception. This isn’t the case one tries to delete a key from JS object. Thus, we have different behaviour in the language for the same operator.

      As per the standard, none of these 2 operations throw exceptions when dealing with non-existent keys. “get” will return undefined if the key doesn’t exist. This is a bug as we should stay consistent with the host language as far as possible, and there is no good reason to deviate here.

       We may need to ensure backwards compatibility (MB-35944)

      Attachments

        Issue Links

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

          Activity

            People

              suraj.naik Suraj Naik (Inactive)
              Gautham.Banasandra Gautham Banasandra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty