-
Notifications
You must be signed in to change notification settings - Fork 254
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
Olm sessions are vulnerable to wedging on OS crash or power failure, leading to UTDs #3354
Comments
Amazingly.. Firefox still doesn't support the EDIT: Ah that's reading the durability from an existing transaction, the option to enable it has been supported much longer https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction#options |
Filed rustwasm/wasm-bindgen#3959 which needs to land first before we can specify the durability mode. |
Ugh, I believe this just happened to me ( |
Do you happen to run the bot using the IndexedDB based store? Do you have logs for this? I suspect that the cause might be a different one. The Olm session will attempt to reinitialize itself, though you might need to drop the currently active room key for the new session to be used: https://matrix-org.github.io/matrix-rust-sdk/matrix_sdk/room/struct.Room.html#method.discard_room_key. That's at least required if you don't use a SDK version which includes: #3604. |
wasm-bindgen 0.2.93 has updated the IndexedDB API so it should now be possible to set a |
Consider:
Currently, we use the "default" durability mode of IndexedDB, which can lead to data loss. We should instead use "strict", at least for transactions which update Olm sessions.
The text was updated successfully, but these errors were encountered: