DI provider caches bad bootstrap results

Description

Currently, the implementation of BucketProvider caches Task from the call to Cluster.BucketAsync results for performance. However, this means that if the call fails to bootstrap the erroneous result is returned for the rest of the lifetime of the DI container. We shouldn't cache error results and should retry the call to BucketAsync.

https://forums.couchbase.com/t/how-to-force-a-retry-of-bucketprovider-getbucketasync-without-using-the-cached-bucket-not-found-value-using-dependencyinjection/33594

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 May 16, 2022 at 10:33 PM
Updated May 20, 2022 at 3:32 AM
Resolved May 20, 2022 at 3:32 AM
Instabug