Skip to content

CXXCBC-665: Always return partial results for all_replica ops if some get_replica reqs succeeded#742

Merged
DemetrisChr merged 1 commit intocouchbase:mainfrom
DemetrisChr:CXXCBC-665-all-replicas-partial-results
Apr 1, 2025
Merged

CXXCBC-665: Always return partial results for all_replica ops if some get_replica reqs succeeded#742
DemetrisChr merged 1 commit intocouchbase:mainfrom
DemetrisChr:CXXCBC-665-all-replicas-partial-results

Conversation

@DemetrisChr
Copy link
Copy Markdown
Contributor

Motivation

Currently, we only report an error if the last individual get/get_replica response to be received had an error. This means that if we have partial results, whether they are returned or not depends on the order at which we receive the responses, which is not deterministic.

Change

If some successful replica results exist, always return them. We do this by only returning the error context of the last response (which is what we have been using to return an error from the overall operation), if there are no successful replica results.

@DemetrisChr DemetrisChr merged commit d1b9716 into couchbase:main Apr 1, 2025
24 of 27 checks passed
@DemetrisChr DemetrisChr deleted the CXXCBC-665-all-replicas-partial-results branch April 1, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants