Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CXXCBC-431: Fix history retention bucket capability check #505

Merged
merged 2 commits into from Jan 23, 2024

Conversation

DemetrisChr
Copy link
Contributor

Motivation

The http_context appears to be at the cluster level, so it wasn't clear which bucket's capabilities were being checked. This resulted in unpredictability, as seen in FIT and in the Python SDK's test suite.

Changes

Add a new execute_with_bucket_capability method that after ensuring that the bucket is open, it checks for the presence of the capability using with_bucket_configuration and then proceeds to do the operation if successful. This is now used for create_collection and update_collection.

Results

Tests pass (including FIT)

Copy link
Contributor

@thejcfactor thejcfactor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! LGTM 👍

@DemetrisChr DemetrisChr merged commit 5a3c79b into couchbaselabs:main Jan 23, 2024
13 of 14 checks passed
@DemetrisChr DemetrisChr deleted the CXXCBC-431-history-cap branch January 23, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants