SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Gracefully handle loading old module versions from disk

Open cloutiertyler opened this issue 1 year ago • 3 comments

The expected behavior is that if SpacetimeDB loads an out of date Wasm module, it should shut down that module, and any calls to that module should return an error which indicates that the module is not running and is out of date.

cloutiertyler avatar Jul 15 '24 20:07 cloutiertyler

I am not sure of the current behavior

cloutiertyler avatar Jul 15 '24 20:07 cloutiertyler

This is an ABI break if we have to add a version number or something to the module, although I'm fairly certain our existing version number would suffice. @coolreader18 Could you determine if this can be done with our existing ABI proposal?

cloutiertyler avatar Aug 19 '24 19:08 cloutiertyler

@coolreader18 has determined that this is not a breaking change to implement.

cloutiertyler avatar Sep 25 '24 18:09 cloutiertyler

See: https://discord.com/channels/1037340874172014652/1138987509834059867/1293674021501796535

cloutiertyler avatar Oct 09 '24 21:10 cloutiertyler