Skip to content

CXXCBC-704: Handle document_unretrievable from get_multi individual fetch#785

Merged
DemetrisChr merged 1 commit intocouchbase:mainfrom
DemetrisChr:CXXCBC-704-handle-unwrapped-errors-in-getmulti
Jun 30, 2025
Merged

CXXCBC-704: Handle document_unretrievable from get_multi individual fetch#785
DemetrisChr merged 1 commit intocouchbase:mainfrom
DemetrisChr:CXXCBC-704-handle-unwrapped-errors-in-getmulti

Conversation

@DemetrisChr
Copy link
Copy Markdown
Contributor

Motivation

Fetching a replica now raises a document_unretrievable error that is not wrapped in a transaction_operation_failed. The get_multi error handling should be updated to handle that.

Change

In get_multi_orchestrator's classify_error method, add handling for op_exception

Results

ExtGetMultiMissingDocsTest which was previously failing now passes

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request updates the error classification in get_multi_orchestrator to correctly handle document_unretrievable errors by adding a new catch clause for op_exception.

  • Added catch block for op_exception in classify_error.
  • Improved error propagation by mapping external exceptions via error_class_from_external_exception.
Comments suppressed due to low confidence (1)

core/transactions/get_multi_orchestrator.cxx:184

  • Consider adding a comment explaining why op_exception is handled separately from transaction_operation_failed to aid future maintainability.
  } catch (const op_exception& e) {

@DemetrisChr DemetrisChr merged commit 43ce438 into couchbase:main Jun 30, 2025
23 of 27 checks passed
@DemetrisChr DemetrisChr deleted the CXXCBC-704-handle-unwrapped-errors-in-getmulti branch June 30, 2025 16:29
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.

3 participants