Skip to content

fix(bigtable): trip accelerator breaker and fall back on InvalidChunk - #18931

Open
mutianf wants to merge 1 commit into
fix-merge-rows-empty-familyfrom
fix-accelerator-invalid-chunk-fallback
Open

mutianf wants to merge 1 commit into
fix-merge-rows-empty-familyfrom
fix-accelerator-invalid-chunk-fallback

Conversation

@mutianf

@mutianf mutianf commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

When an accelerator ReadRows stream yields a malformed chunk (such as an empty row key), merge_rows raises InvalidChunk. Catch InvalidChunk in handle_accelerator_error to trip the breaker and fall back to the native GAPIC client.
@mutianf
mutianf added this pull request to stack #18932 October 30, 2026 19:57
@mutianf
mutianf requested a review from a team as a code owner October 30, 2026 19:57

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds handling for InvalidChunk exceptions in the Bigtable accelerator fallback mechanism. When an InvalidChunk is encountered, the breaker is tripped, a warning is logged, and the client falls back to the native Bigtable client. Unit tests have been added to verify this behavior. I have no feedback to provide as the implementation is clean and well-tested.

This branch has not been deployed

No deployments
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.

1 participant