ClusterVersionProvider.GetVersionAsync may fail if nodes have no ManagementUri

Description

When using ClusterVersionProvider to get the version, we randomly choose a server to request information from the management URI. However, nodes may not have a ManagementUri and if we attempt from this node we'll get a NullReferenceException. This is a sporadic problem due to the randomized node order for attempts.

See https://github.com/couchbaselabs/Linq2Couchbase/issues/370 for full details.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

Mathieu DEGROUX October 5, 2023 at 4:21 PM

I had the same issue calling 

it occurs the same way because ServiceUriProvider.GetRandomManagementUri do not check if ManagementUri is null

 

 

Resolved
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created October 5, 2023 at 3:00 PM
Updated March 27, 2024 at 5:52 PM
Resolved March 27, 2024 at 5:52 PM
Instabug