Skip to content

PHOENIX-7838 LogicalTableNameBaseIT sets a short master lock timeout for snapshots - #2455

Open
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-7838
Open

apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-7838

Conversation

@apurtell

@apurtell apurtell commented May 2, 2026 •

Copy link
Copy Markdown
Contributor

LogicalTableNameIT and LogicalTableNameExtendedIT fail on the HBase 2.5 profile with SnapshotCreationException ("already running another snapshot on the same table").

Cause: HBase 2.5 LockProcedure has a lost wakeup. execute() checks the unlock flag outside synchronized(event), and unlock() wakes the procedure only if it is suspended. TakeSnapshotHandler.prepare in HBase 2.5 releases its exclusive table lock inside this window. The lock procedure then holds the table lock until the local master lock timeout (10 minutes). The client snapshot call times out after 60 seconds, and each retry is rejected because the first snapshot is still in progress.

Change: set hbase.master.procedure.local.master.locks.timeout.ms to 30000 in the test cluster. A lost wakeup now costs at most 30 seconds, which is less than the client RPC timeout, so the snapshot completes on the first call. This PR no longer adds the snapshot retry helper, because a retry cannot complete until the lock times out. The branch is rebased onto the latest master.

Updated by Claude Code on behalf of Andrew Purtell.

🤖 Generated with Claude Code

@apurtell

Copy link
Copy Markdown
Contributor Author

Rebased on current master.

@palashc

palashc commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Build aborted after 11h - started a new one https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-2455/

@palashc palashc 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.

+1, pending build results

@apurtell
apurtell requested a balanced review from Copilot August 15, 2026 12:16

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…for snapshots

HBase 2.5 LockProcedure can lose the wakeup that releases a table lock.
The snapshot handler releases its exclusive lock inside this window.
The lock then stays held until the local master lock timeout of 10
minutes. The client snapshot call times out, and its retries fail with
"already running another snapshot".

Set the local master lock timeout to 30 seconds in the test cluster.
A lost wakeup then costs at most 30 seconds, which is less than the
client RPC timeout, so the first snapshot call completes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apurtell apurtell changed the title PHOENIX-7838 LogicalTableNameBaseIT wrap admin.snapshot() in retry helper PHOENIX-7838 LogicalTableNameBaseIT sets a short master lock timeout for snapshots Nov 24, 2026
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