SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Client cache invariant failure in rust sdk

Open joshua-spacetime opened this issue 9 months ago • 3 comments

See discord thread for details.

A user is hitting a client cache invariant check in the rust SDK.

https://github.com/clockworklabs/SpacetimeDB/blob/0dd18070636edbfe26d4cd17af75214808d9fba5/crates/sdk/src/client_cache.rs#L187

This means we are attempting to delete a row from the cache that is not already present in the cache.

Originally this was thought to be a manifestation of #2397, however that only affected join queries, and based on the workload provided in the discord thread, it doesn't appear that join queries are involved.

joshua-spacetime avatar Mar 11 '25 18:03 joshua-spacetime

As a first step, let's see if we can reproduce this using the workload provided in the discord thread.

joshua-spacetime avatar Mar 18 '25 18:03 joshua-spacetime

I haven't been able to reproduce this using the instructions provided on Discord, and it seems @joshua-spacetime wasn't able to either. Let's see if we can get any help from the user to narrow the issue down.

Centril avatar Mar 19 '25 17:03 Centril

Thanks @Centril. We can move this back to Todo until we get more information.

joshua-spacetime avatar Mar 19 '25 17:03 joshua-spacetime