FTS throws generic CouchbaseException skipping error handling

Description

The AnalyticClient calls ShouldRetry on the analytics result if a failure is detected, which has a switch statement which defaults to a CouchbaseException. This makes nearly every error fail with the wrong exception type.

https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Analytics/AnalyticsClient.cs#L105

https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Analytics/AnalyticsResultBase.cs#L47-L75

Environment

None

Gerrit Reviews

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

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created February 24, 2022 at 2:22 AM
Updated April 20, 2022 at 2:16 AM
Resolved April 20, 2022 at 2:16 AM
Instabug