1
0
Fork 0

113 Commits (master)

Author SHA1 Message Date
Philip O'Toole bbaa973f45 Always close the Snaphot
This may explain many test failures on Windows, for example
https://ci.appveyor.com/project/otoolep/rqlite/builds/48967106.
8 months ago
Philip O'Toole 5abbb33390 Make some State-type functions for Snapshot 8 months ago
Philip O'Toole f4000a0173
Count failed snapshot reaps 8 months ago
Philip O'Toole 693a97f519
Fix typo 8 months ago
Philip O'Toole db42e07510 Comments 8 months ago
Philip O'Toole 5866741b51 Remove debug logging 8 months ago
Philip O'Toole a79ff2c08c Explicitly close, as well as defer 8 months ago
Philip O'Toole 1a9f0eb6ac Add debug logging 8 months ago
Philip O'Toole b58a6b4635 List the files if failing 8 months ago
Philip O'Toole 3979dd25af Small code improvements 8 months ago
Philip O'Toole eddd6b058c More back-to-back Full Snapshot testing 8 months ago
Philip O'Toole 2947e115fc Correct error message 8 months ago
Philip O'Toole cce70a0bd4 Explicit convert migrate snapshot DB to WAL mode 8 months ago
Philip O'Toole a9abda5655 Do defer first for style reasons 8 months ago
Philip O'Toole eda281ea48 List the newest snapshot, not oldest
If rqlite was killed after snapshot-creation, but before reaping took
place, Snapshot List() would return the oldest snapshot, not the newest.
This is not compliant with Hashicorp Raft requirements.
8 months ago
Philip O'Toole bf18b3fab5 Remove some excessive logging 9 months ago
Philip O'Toole 4095561a3f Only report Snapshot stats if available 9 months ago
Philip O'Toole 593d20714d Don't lock 9 months ago
Philip O'Toole a3540d7a95 Block sinks while getting stats 9 months ago
Philip O'Toole ad916270d2 Bring go mod import path into compliance 9 months ago
Philip O'Toole 4988c29951 Log at DB level if open times are higher 9 months ago
Philip O'Toole e3fa8584c0 Store can handle snapshotting empty WAL files 9 months ago
Philip O'Toole 88971bb883 Merge remote-tracking branch 'origin' into zero-wal 9 months ago
Philip O'Toole cdf7cbdea1 Handle snapshots for empty WALs 9 months ago
Philip O'Toole c05351e187 Improve log message 9 months ago
Philip O'Toole 919962c1fb Allow FullNeeded to be explicity set to true 10 months ago
Philip O'Toole 31aef91d17 Add FullNeeded() to Snapshot store
It may be necessary to override the FullNeeded definition, so wrap it.
10 months ago
Philip O'Toole f15f2b95b3 Count Snapshot upgrades 10 months ago
Philip O'Toole 53632ec5d5 Add Snapshot Store stats 11 months ago
Philip O'Toole 66c1002c32 Remove obsolete metrics 11 months ago
Philip O'Toole b2663de630 Rename snapshot2 -> snapshot 11 months ago
Philip O'Toole a69aa7838d Remove snapshot 1 11 months ago
Philip O'Toole d975d25503
Merge pull request #1391 from rqlite/otoolep-restorer-unit-tests
Add Restorer unit tests
1 year ago
Philip O'Toole d86e14d55a
Update store_test.go 1 year ago
Philip O'Toole dbdf78d0a3
Add Restore to Snapshot Strore 1 year ago
Philip O'Toole 3b6c988dd9 Do some syncing and closing 1 year ago
Philip O'Toole 98a151d5dc Measure reap-snapshots time 1 year ago
Philip O'Toole b6b73e5f0e More metrics 1 year ago
Philip O'Toole 86f3fda86e Record size of snapshot persist 1 year ago
Philip O'Toole 225b5346f5 Add basic stats for Snapshot store 1 year ago
Philip O'Toole 88f15a6b0e Log opening of Snapshots 1 year ago
Philip O'Toole f9d939e9d3
Rename stream_header.pb to stream_header.proto 1 year ago
Philip O'Toole 4f915b840c Tidy up code 1 year ago
Philip O'Toole 4f94de40d3
Update comments 1 year ago
Philip O'Toole 7acb864b31
Close the Snapshot reader 1 year ago
Philip O'Toole 4f076202c0 Wrap some upgrading in function to trigger defer
This will ensure all file handles are closed before attempting to
rename or remove directories.
1 year ago
Philip O'Toole 0aac0c8928 Revert "Use manually-created temp dirs"
This reverts commit f1845e887f.
1 year ago
Philip O'Toole f1845e887f Use manually-created temp dirs
Using t.TempDir() may be failing on Windows due to removals.
1 year ago
Philip O'Toole 47e9bbde49 Fix single-node upgrade test 1 year ago
Philip O'Toole 207533a685 Don't need state in this snapshot 1 year ago