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

gRPC's prepared query cache gets out of sync with persistence's query cache #1065

Closed
dougwettlaufer opened this issue Jun 25, 2021 · 0 comments · Fixed by #1066
Closed

gRPC's prepared query cache gets out of sync with persistence's query cache #1065

dougwettlaufer opened this issue Jun 25, 2021 · 0 comments · Fixed by #1066
Labels

Comments

@dougwettlaufer
Copy link
Contributor

dougwettlaufer commented Jun 25, 2021

The prepared query cache in gRPC does not currently have a cache invalidation mechanism and because of this when a prepared query is removed from the cache in the persistence module it does not also get removed from the gRPC cache.

I was able to reproduce this issue by

  1. Create a keyspace and table
  2. Execute an insert query on the table
  3. Drop the keyspace
  4. Recreate the same keyspace and table
  5. Try to run the same insert query again and it fails

To resolve this we need to either a) remove the local cache in gRPC or b) add cache invalidation in order to keep the caches in sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant