Skip to content

PHOENIX-7949 IndexScrutinyWithMaxLookbackIT scrutiny at SCN beyond max lookback counts updated rows as VALID#2560

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

PHOENIX-7949 IndexScrutinyWithMaxLookbackIT scrutiny at SCN beyond max lookback counts updated rows as VALID#2560
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-7949

Conversation

@apurtell

Copy link
Copy Markdown
Contributor

IndexScrutinyWithMaxLookbackIT updated only the covered column of a row and expected scrutiny to count it as BEYOND_MAX_LOOKBACK, but an in-place covered column update leaves the indexed column and thus the index row key unchanged, so the index row is never deleted. Major compaction retains the pre-update version as the row version visible at the lower edge of the max lookback window, and IndexScrutinyTool refuses to scan at an SCN older than max lookback. The fix adds @Category(NeedsOwnMiniClusterTest.class) and replaces the two invalid test cases with testScrutinyOnUpdatedRowsWithinMaxLookbackAreValid and testScrutinyOnUpdatedViewIndexRowsWithinMaxLookbackAreValid, which assert the correct invariants with the rationale documented in inline comments, while leaving testScrutinyOnDeletedRowsBeyondMaxLookBack unchanged.

…x lookback counts updated rows as VALID

Co-authored-by: Claude Opus 4.8[1m] <noreply@anthropic.com>
@palashc

palashc commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

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