Skip to content

HBASE-30495 Incorrect remote RPC retry count when reopening a scanner - #8816

Open
liuxiaocs7 wants to merge 1 commit into
apache:masterfrom
liuxiaocs7:HBASE-30495
Open

liuxiaocs7 wants to merge 1 commit into
apache:masterfrom
liuxiaocs7:HBASE-30495

Conversation

@liuxiaocs7

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow fix matches the metrics contract, and the regression tests cover both affected error paths for local and remote servers.

No open issues 🎉

What changed in this PR

Fixes HBASE-30495 in the asynchronous scan client so remote RPC retries during scanner reopening are counted based on server locality, rather than whether the scanner is closed.

Changes:

  • Passes regionServerRemote to the retry-metrics helper.
  • Adds regression tests for scanner-reset and out-of-order errors, covering both local and remote servers.
File Description
hbase-client/​src/​test/​java/​org/​apache/​hadoop/​hbase/​client/​TestAsyncScanSingleRegionRpcRetryingCaller.java Tests retry counts and scanner-close behavior across error and locality combinations.
hbase-client/​src/​main/​java/​org/​apache/​hadoop/​hbase/​client/​AsyncScanSingleRegionRpcRetryingCaller.java Corrects the locality flag used to count remote retries.

Review effort: Balanced

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