I had a bug in my app which resulted in a number of SQLITE_CONSTRAINT_CHECK errors.
I was inserting thousands of records across a number of tables all in a named transaction, when the constraint check failed it rolled the transaction back.
When a number of these happen close together the data stopped being sent to the non primary node.
When you restarted the primary server it got an error like this
cannot open store: open databases: open database("sqlite.db"): verify database file: database checksum (f6b0461071c271bd) does not match latest LTX checksum
The only way to get the primary back up again was to delete the /litefs/dbs/<database.sqlite> folder and restart the machine.
There were no errors reported by litefs when this issue occured, it was only that i noticed the filesize had stopped growing on the secondary node.
I had a bug in my app which resulted in a number of SQLITE_CONSTRAINT_CHECK errors.
I was inserting thousands of records across a number of tables all in a named transaction, when the constraint check failed it rolled the transaction back.
When a number of these happen close together the data stopped being sent to the non primary node.
When you restarted the primary server it got an error like this
cannot open store: open databases: open database("sqlite.db"): verify database file: database checksum (f6b0461071c271bd) does not match latest LTX checksum
The only way to get the primary back up again was to delete the /litefs/dbs/<database.sqlite> folder and restart the machine.
There were no errors reported by litefs when this issue occured, it was only that i noticed the filesize had stopped growing on the secondary node.