Skip to content

Fix resetting maximum numeric table TTL to INF - #19183

Open
Caideyipi wants to merge 4 commits into
apache:masterfrom
Caideyipi:fix/table-ttl-inf-20261109
Open

Caideyipi wants to merge 4 commits into
apache:masterfrom
Caideyipi:fix/table-ttl-inf-20261109

Conversation

@Caideyipi

@Caideyipi Caideyipi commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Changing a table TTL from 9223372036854775807 to INF was treated as unchanged because both resolve to Long.MAX_VALUE. Comparing the stored TTL property now persists the transition and makes SHOW TABLES report INF. This also covers DEFAULT when the database default is infinite while preserving no-op behavior for an already infinite TTL.

Regression coverage checks finite-to-maximum-to-infinite transitions, DEFAULT resolving to infinity, original property preservation before commit, persisted ConfigNode state, and repeated infinite TTL updates.

The CI follow-up restores the missing flush-listener collection used by WALNodeTest.testDeleteOutdatedFiles after syncing the target branch. It retains the existing writes and success assertions.

Validation: Spotless and the IT selection check passed. The ConfigNode procedure test class passed (3 tests), and the new regression fails against the original implementation. The focused integration method passed under TableSimpleIT and under TableClusterIT settings using direct JUnit (1 ConfigNode, 3 DataNodes). The direct Maven TableClusterIT invocation was blocked before test execution by dependency resolution.

CI follow-up validation: DataNode Spotless passed, and the local Surefire run of WALNodeTest#testDeleteOutdatedFiles passed (1 test, 0 failures, 0 errors, 0 skipped) after test-source compilation. The remote Maven attempt was blocked by build-plugin resolution. Full dual-locale compilation has not been run.

@Caideyipi
Caideyipi marked this pull request as draft November 9, 2026 08:15
@Caideyipi
Caideyipi marked this pull request as ready for review November 9, 2026 09:25
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