Repository navigation
Conversation
…onnection pool metaDataCoprocessorExec read one row of a system table with the range form of Table.coprocessorService. HBase runs each region call of that form as a task in the batch pool of the connection, and the caller waits for the task without a timeout. On a region server, write handlers make this call when the index metadata of a batch comes from the server. The batch pool of the server connection is bounded. Its threads can hold scans that wait in the default call queue for the same handlers. Then neither side makes progress, and the region server stops serving writes. The call now uses the single-row coprocessor channel and runs on the caller thread. The channel call is the same call that the pool task made, with the same operation timeout and retries, so results and errors do not change. The call does not wait for a pool thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The call goes to the one region that holds the table key. The comment now says this, and it says what happens when the call goes through the batch pool of the connection instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Self-review (Claude Code, pr-review-toolkit) — Copilot could not review this PR because of a review quota limit, so this is an automated self-review in its place. Suggestions
Strengths
Recommendation: merge after nits 🤖 Generated with Claude Code |
Contributor
Author
|
Response to the self-review (Claude Code):
The addendum changes only the comment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The concurrent mutation tests with eventual index consistency stall at random after a table split, and the region server stops serving writes while it stays alive.
The cause is a deadlock between two bounded resources on the region server. Write handlers read index metadata through the server side Phoenix connection. That read used the range form of the HBase coprocessor call, which hands the work to the connection batch pool and waits without a timeout. The pool threads can at the same time hold scans from the eventual index consumers, and those scans wait in the call queue for the same handlers.
The metadata read always targets one row, so it now uses the single row coprocessor channel and runs on the calling thread. The remote call, its timeout and its retries are the same as before. Only the thread changes, so the read no longer waits for the pool.
🤖 Generated with Claude Code