Skip to content

Disable flaky PerCellTTLTest - #431

Merged
eazyhozy merged 4 commits into
mainfrom
fix/percell-ttl-flaky-test
Jul 20, 2026
Merged

eazyhozy merged 4 commits into
mainfrom
fix/percell-ttl-flaky-test

Conversation

@eazyhozy

@eazyhozy eazyhozy commented Jul 19, 2026 •

Copy link
Copy Markdown
Member

Summary

PerCellTTLTest intermittently fails on the "Delete then Put" case: OperationHelper.perform() builds Delete/Put mutations without an explicit timestamp, so a Delete immediately followed by a Put can be assigned the same millisecond timestamp by HBase. Since a row tombstone covers cells with timestamp <= tombstone timestamp, the new Put gets shadowed — more likely to trigger on fast local machines than on CI.

Per discussion below, this test is really re-verifying HBase's own tombstone/TTL ordering rather than actionbase-specific logic, and that's already well-covered at the HBase level. Disabling it instead of chasing the timing race further.

Changes

  • @Disabled on PerCellTTLTest, with a pointer back to this PR for context.

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code (Claude Fable 5)

…lper

HBase row tombstones cover cells with timestamp <= the tombstone's
timestamp, so a Delete immediately followed by a Put can land in the
same millisecond and shadow the new value, causing the "Delete then
Put" case in PerCellTTLTest to fail intermittently on fast machines.

Track the Delete's timestamp and explicitly stamp the next plain Put
one millisecond after it.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Happy <[email protected]>
@eazyhozy eazyhozy self-assigned this Jul 19, 2026
Delete followed by a Put(ttl) has the same tombstone-collision risk as
plain Put, though no current assertion exercises it (the "Delete then
Put(ttl)" case expects null either way). Apply the same guard so the
fix isn't limited to the one case the test suite happens to assert.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Happy <[email protected]>
@em3s

em3s commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

I think we should just disable it, assuming this is already well-tested at the HBase level. @eazyhozy

@eazyhozy

Copy link
Copy Markdown
Member Author

Agreed.

If we're dropping it, I'd lean toward removing PerCellTTLTest.kt (and the OperationHelper fixture, its only user) entirely rather than @Disabled — a disabled test with no re-enable plan is just dead code. Open to @Disabled if there's a reason to revisit it later.

@em3s which do you prefer?

@em3s

em3s commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@disabled

Per review on #431: this test re-verifies HBase's own tombstone/TTL
ordering rather than actionbase-specific logic, and that behavior is
already well covered at the HBase level.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Happy <[email protected]>
@eazyhozy eazyhozy changed the title fix: avoid Put/Delete timestamp collision in PerCellTTLTest helper test: disable flaky PerCellTTLTest Jul 20, 2026
@eazyhozy

Copy link
Copy Markdown
Member Author

Disabled in 925fdf4.

@eazyhozy eazyhozy changed the title test: disable flaky PerCellTTLTest Disable flaky PerCellTTLTest Jul 20, 2026
@eazyhozy
eazyhozy marked this pull request as ready for review July 20, 2026 01:19
@eazyhozy
eazyhozy requested a review from em3s as a code owner July 20, 2026 01:19
@dosubot dosubot Bot added the maintenance Maintenance work. label Jul 20, 2026
@eazyhozy
eazyhozy requested a review from zipdoki July 20, 2026 01:19
@em3s

em3s commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

LGTM 👍

Now that PerCellTTLTest is disabled, the timestamp-guard logic added
to unblock it is unreachable. Minimize this PR's diff to just the
@disabled annotation.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Happy <[email protected]>
@eazyhozy
eazyhozy removed the request for review from zipdoki July 20, 2026 01:24
@eazyhozy
eazyhozy merged commit a0ae460 into main Jul 20, 2026
2 checks passed
@eazyhozy
eazyhozy deleted the fix/percell-ttl-flaky-test branch July 20, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants