Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-503

Ignore configuration if it contains an empty vBucketMap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.15
    • None
    • None
    • None
    • 1

    Description

      It is possible (although a bug...that is being fixed) to receive a configuration that contains an empty vBucketMap. Currently the SDK does not ignore these configurations which leaves the SDK susceptible to crashing if operations are attempted prior to updating the config. Specifically, floating point exceptions due to modulus operations w/ 0 in the denominator have been seen in wrapper SDKs (see code references here and here).

      Lets add checks in when updating configuration to ignore configs that meet the condition: config.vbmap && config.vbmap->size() == 0.

      Attachments

        Issue Links

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

          Activity

            People

              jared.casey Jared Casey
              jared.casey Jared Casey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes