You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
3943: [CBR-495] Fix inconsistent metadata store after deletion r=jmitchell a=KtorZ
## Description
We store some information related to transaction in the metadata store (sqlite). However, when looking up transaction with metadata referring to wallet we don't know about, we fail with a not so friendly error "WalletNotFound" despite no wallet being given as part of the query.
This fix is actually two folds:
- It discards incoherent transactions fetched from the DB, if any,
and shout a warning in the log. This is in order to make the system
more resilient to conconcurrent calls while a wallet or account is
being deleted (since metadata and accounts / wallets are stored in
separated databases, we can't easily run both delete in a single
transaction).
- It also deletes corresponding metadata when an account or a wallet
is removed. This may cause extra damage? What if there are pending
transactions when we delete the account or wallet.
## Linked issue
[CBR-495](https://iohk.myjetbrains.com/youtrack/issue/CBR-495)
3947: [CBR-496] Fix --rebuild-db not rebuilding sqlite r=jmitchell a=KtorZ
## Description
<!--- A brief description of this PR and the problem is trying to solve -->
Turns out we aren't actually removing the sqlite database when passing --rebuild-db becaue the SQLite db is actually stored in a file and not a directory.
## Linked issue
<!--- Put here the relevant issue from YouTrack -->
[[CBR-496]](https://iohk.myjetbrains.com/youtrack/issue/CO-445)
Co-authored-by: KtorZ <[email protected]>
Co-authored-by: kderme <[email protected]>
0 commit comments