Skip to content

[CASSANDRA-21152][trunk] Fix a removed TTLed row re-appearance in a materialized view after a cursor compaction#4697

Closed
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21152-trunk
Closed

[CASSANDRA-21152][trunk] Fix a removed TTLed row re-appearance in a materialized view after a cursor compaction#4697
netudima wants to merge 1 commit into
apache:trunkfrom
netudima:CASSANDRA-21152-trunk

Conversation

@netudima
Copy link
Copy Markdown
Contributor

Fix a removed TTLed row re-appearance in a materialized view after a cursor compaction

Add an implementation of isExpired to ReusableLivenessInfo, before the change the method implementation was interited from an interface and always returned false, so livenessInfo().supersedes(...) did not work properly.

patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-21152

@netudima netudima force-pushed the CASSANDRA-21152-trunk branch from 3c7e197 to 3ac0c36 Compare March 29, 2026 16:43
Copy link
Copy Markdown
Contributor

@nitsanw nitsanw left a comment

Choose a reason for hiding this comment

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

LGTM. Fix is correct, but I would suggest going further and removing the default implementation and making it a clear requirement for subclasses to implement (i.e. move the default to the Immutable case).

…cursor compaction

Add an implementation of isExpired to ReusableLivenessInfo, before the change the method implementation was interited from an interface and always returned false, so livenessInfo().supersedes(...) did not work properly.

patch by Dmitry Konstantinov; reviewed by Branimir Lambov, Nitsan Wakart for CASSANDRA-21152
@netudima netudima force-pushed the CASSANDRA-21152-trunk branch from a8e1667 to 241f207 Compare April 1, 2026 17:56
@netudima
Copy link
Copy Markdown
Contributor Author

netudima commented Apr 1, 2026

Committed as 1a9ab95

@netudima netudima closed this Apr 1, 2026
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