Ignore configuration if it contains an empty vBucketMap

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.

Environment

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Priority

Instabug

Open Instabug

Sentry

Zendesk Support

Created April 9, 2024 at 4:23 PM
Updated April 10, 2024 at 3:05 PM
Resolved April 10, 2024 at 3:05 PM
Instabug