p2panda / aquadoggo

Node for the p2panda network handling validation, storage, aggregation and replication
GNU Affero General Public License v3.0
70 stars 5 forks source link

In-Memory SQLite database drops data for unknown reasons #568

Closed adzialocha closed 11 months ago

adzialocha commented 1 year ago

I've observed this a couple of times now where my longer running node with in-memory SQLite database failed with:

Error occured during `EntryStorage` request in storage provider: error returned from database: (code: 1) no such table: entries

My assumption is that other processes (other programs using in-memory database, like fishy or other aquadoggo instances) wipe / amend the database but not sure.

adzialocha commented 1 year ago

Still not sure why SQLite behaves like this. It might need a similar fix as we already have for our test environment (in-memory databases where each one receives a random id)

adzialocha commented 11 months ago

Related issue: https://github.com/launchbadge/sqlx/issues/2510