Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row-level TTL PR 7: TopologyTestDriver#advanceWallClockTime #379

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

ableegoldman
Copy link
Contributor

@ableegoldman ableegoldman commented Nov 1, 2024

Minor followup to PR #6 where we changed the TTD so that only advancing stream-time by piping additional input records would apply ttl. Although this more closely matches how the TTD has to be used in vanilla Streams, it's a pain to be unable to advance the time on its own without being coupled to the input records. This PR restores the previous semantics of the ResponsiveTopologyTestDriver#advanceWallClockTime API so that this can be used to validate ttl in TTD tests

PR 1: API #370
PR 2: TtlResolver #371
PR 3: compute minValidTs from TtlResolver #373
PR 4: CassandraFactTable implementation #374
PR 5: extract StateSerdes #375
PR 6: support for ResponsiveTopologyTestDriver #376

@ableegoldman ableegoldman requested a review from agavra November 1, 2024 23:41
@@ -142,6 +142,64 @@ public void shouldRunWithoutResponsiveConnectionAndKeyBasedTtl(final KVSchema ty
driver.close();
}

@ParameterizedTest
@EnumSource(SchemaTypes.KVSchema.class)
public void shouldEnforceKeyBasedTtlByAdvancingWallclockTime(final KVSchema type) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified that this test failed without the fix

@ableegoldman ableegoldman merged commit 3515a93 into main Nov 2, 2024
1 check passed
@ableegoldman ableegoldman deleted the TTL-7-TTD-advanceWallClockTime branch November 2, 2024 00:10
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