Skip to content

Conversation

@jaydeepkumar1984
Copy link
Contributor

https://issues.apache.org/jira/browse/CASSANDRA-17248 added prepared statement eviction logic because there was a change in prepared statements' behavior between 4.0.1 -> 4.0.2. However, the eviction logic introduces a race condition depicted in https://issues.apache.org/jira/browse/CASSANDRA-17401

As per this discussion, we should keep the eviction logic in the 4.0 branch, but invoke only in a real corner case scenario.

This PR will evict the statements only during the corner case scenario in which either of the prepared statement caches is empty, but not both.

The Cassandra Jira

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.

2 participants