clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.37k stars 110 forks source link

Gracefully handle loading old module versions from disk #1512

Open cloutiertyler opened 3 months ago

cloutiertyler commented 3 months ago

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 commented 3 months ago

I am not sure of the current behavior

cloutiertyler commented 2 months ago

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 commented 3 weeks ago

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

cloutiertyler commented 1 week ago

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