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

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.

Pull request overview

Updates max-lookback scrutiny integration tests to reflect correct covered-column update behavior.

Changes:

  • Isolates the test class in its own mini-cluster.
  • Replaces incorrect beyond-lookback expectations with valid-row assertions.
  • Documents SCN and compaction behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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