Skip to content

PHOENIX-7831 PhoenixQueryTimeoutIT wait for DelayedRegionObserver to load#2448

Open
apurtell wants to merge 1 commit intoapache:masterfrom
apurtell:PHOENIX-7831
Open

PHOENIX-7831 PhoenixQueryTimeoutIT wait for DelayedRegionObserver to load#2448
apurtell wants to merge 1 commit intoapache:masterfrom
apurtell:PHOENIX-7831

Conversation

@apurtell
Copy link
Copy Markdown
Contributor

@apurtell apurtell commented May 1, 2026

testScanningResultIteratorQueryTimeoutForPagingWithVeryLowTimeout attaches a DelayedRegionObserver to its data table so the test query reliably times out, but addCoprocessor only invokes admin.modifyTable, which returns as soon as the master TableDescriptor is updated and does not wait for region servers to reopen the affected regions with the new coprocessor. The query then runs immediately against the old observer chain, completes too quickly, and the timeout assertion fails. The fix polls region.getCoprocessorHost().findCoprocessor() on every region of the test table after addCoprocessor until the coprocessor is loaded.

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