Philip O'Toole
10e6f1b115
Clean up snapshot FDs
11 months ago
Philip O'Toole
93566415e3
Just run bad test
11 months ago
Philip O'Toole
47d877cc25
Don't close dst file until done
11 months ago
Philip O'Toole
09712788c9
Store now builds with snapshot2
11 months ago
Philip O'Toole
6a60108f0c
Start work on Restore and Recover
...
Builds, but still needs more work. It's referencing snapshot(1).
11 months ago
Philip O'Toole
d34c35df31
No need to Store-level WAL selection
11 months ago
Philip O'Toole
5e3d481a6e
Fill out methods on SnapshotStore v2
12 months ago
Philip O'Toole
7c420407c2
WIP snapshot2
...
Close() on the Sink is done (first pass). What's needed next are all the
methods on the Store (Open, List, FullNeeded). I also need to decide
what getSnapshots should really do -- return names or a slice of meta?
12 months ago
Philip O'Toole
974f939ffe
Add an interface between Store and Snapshot Store
...
This will make it easier to swap new implementations in.
1 year ago
Philip O'Toole
be17f2a3cc
Correct variable assignment order
1 year ago
Philip O'Toole
5b4ff9b8ce
Fix test code
1 year ago
Philip O'Toole
53b432a391
More DB and Snapshot stats
1 year ago
Philip O'Toole
59e6a23b02
Clean-up logging
1 year ago
Philip O'Toole
2fff800273
Substantially shrink Test_MultiNodeClusterLargeQueuedWrites
1 year ago
Philip O'Toole
378dd4b2a1
Simpler logging of first application
1 year ago
Philip O'Toole
5ab7069aa0
Update store.go
1 year ago
Philip O'Toole
a4f7431108
Log first time a log is applied
1 year ago
Philip O'Toole
ad86a2989b
Use non-racy function for Leader ID and address
1 year ago
Philip O'Toole
225b5346f5
Add basic stats for Snapshot store
1 year ago
Philip O'Toole
1ffb44cd38
ABL
1 year ago
Philip O'Toole
854fba0e66
Better way to detect previous close
1 year ago
Philip O'Toole
d78d2f4d9d
Short circuit EOF from decompressor
...
The gzip NewReader() seems to hang sometimes when reopened with the old
reader. Therefore just record that we have closed, and never reopen it.
1 year ago
Philip O'Toole
3eb4607a74
GoDoc
1 year ago
Philip O'Toole
a49385e1d3
Add end-to-end compress-decompress test
1 year ago
Philip O'Toole
52aa68497d
Better comment on disabling multistream
1 year ago
Philip O'Toole
06a94e50bf
Raft snapshotting runs to 100%
...
Still failing later.
1 year ago
Philip O'Toole
cb384a9df2
More test tweaks
1 year ago
Philip O'Toole
2395f30ddf
Be sure we don't write footer twice
1 year ago
Philip O'Toole
57eabce899
Protect against double-close of NodeTransport
1 year ago
Philip O'Toole
365abac57c
Simple unit test of NewNodeTransport
1 year ago
Philip O'Toole
fedbdb5478
Enable GZIP snapshot compression
...
Tests are failing.
1 year ago
Philip O'Toole
195981868f
Typo
1 year ago
Philip O'Toole
6efdf9f2b9
Add Decompressor
1 year ago
Philip O'Toole
1fe81713c9
More Compressor tests
1 year ago
Philip O'Toole
55b3aaa805
Add initial version of Gzipping reader
1 year ago
Philip O'Toole
d2c5acc447
Wrap transport as passthru
1 year ago
Philip O'Toole
47e9bbde49
Fix single-node upgrade test
1 year ago
Philip O'Toole
cb989d09a2
Some changes from PR v2
1 year ago
Philip O'Toole
1a24557c19
Merge remote-tracking branch 'origin' into wal-snapshot-store-v3
1 year ago
Philip O'Toole
208fc20659
Fix more uses of random
1 year ago
Philip O'Toole
54713b63f4
Merge remote-tracking branch 'origin' into wal-snapshot-store-v3
1 year ago
Philip O'Toole
c51b8364e8
Fix import path
1 year ago
Philip O'Toole
2288cfe2a9
random only needed by store
1 year ago
Philip O'Toole
c1a8b4a13a
Use global, sync'ed random source
...
Almost unbelievably it appears tests on AppVeyor get the same value when
seeding the random generator. See https://ci.appveyor.com/project/otoolep/rqlite/builds/47853399
1 year ago
Philip O'Toole
c6e214de1a
Remember store attributes
1 year ago
Philip O'Toole
dda86be0d3
Better Store open-and-close logging
1 year ago
Philip O'Toole
c44d020c11
Only attempt to checkpoint once
1 year ago
Philip O'Toole
d6b9c5b39e
Close streams
1 year ago
Philip O'Toole
ee8b23ba94
More logging
1 year ago
Philip O'Toole
e8e0381622
Log when Store closes
1 year ago
Philip O'Toole
a6134b02bc
Instrument the FSM snapshot process
1 year ago
Philip O'Toole
76867a682f
Time FSM snapshot creation
1 year ago
Philip O'Toole
ab6ca783e1
Checkpoint database during Recovery
1 year ago
Philip O'Toole
a9e895bee2
Some cleanups
1 year ago
Philip O'Toole
bd0f78391e
Remove unneeded FSM snapshot code
1 year ago
Philip O'Toole
47476d5b58
Integrate new snapshoting with Store
...
- Snapshot
- Restore
- RecoverNode
1 year ago
Philip O'Toole
5eb4e38cbc
Add comments and errors
1 year ago
Philip O'Toole
e4d5ffb8a9
Flesh our Store check()
1 year ago
Philip O'Toole
48ea4bbfd8
Use a single header
1 year ago
Philip O'Toole
ea8dc3ed18
More test fix-up post removal of in-memory
1 year ago
Philip O'Toole
6895525482
Rename some tests
1 year ago
Philip O'Toole
aa72408bc5
Remove racy use of rand
1 year ago
Philip O'Toole
07d49961d8
Remove unused functions
1 year ago
Philip O'Toole
9e31a054aa
RecoverNode now uses on-disk database
1 year ago
Philip O'Toole
88ce311b37
Remove all WAL-related files when loading new DB
1 year ago
Philip O'Toole
b931e387be
First pass at removing in-memory support
1 year ago
Philip O'Toole
23b8b6e5c9
Actually rename
1 year ago
Philip O'Toole
2ac27c2ffc
Move Store tests back to single directory
1 year ago
Philip O'Toole
65c6a56468
Remove the file
1 year ago
Philip O'Toole
88d448851d
Blank out on-disk store tests
1 year ago
Philip O'Toole
02b7ea7955
Close Store so temp storage can be cleaned up
1 year ago
Philip O'Toole
e47c7a1b7b
Stress-test snapshotting
1 year ago
Philip O'Toole
e497ee75f9
Fix typo
1 year ago
Philip O'Toole
f06e547ab5
Less disk IO during load
1 year ago
Philip O'Toole
f5517c0f66
Correct comment
1 year ago
Philip O'Toole
9bdf048975
Better naming of temp backup file
1 year ago
Philip O'Toole
b5cb889e1e
Auto-restore doesn't require ready() check
1 year ago
Philip O'Toole
b7633143cc
Restore from file uses chunking
1 year ago
Philip O'Toole
5ca5ce342e
Support internode LoadChunk()
1 year ago
Philip O'Toole
1c8e52c5f7
Test_SingleNodeLoadBinaryFromReader passes
...
That's good, but much more extensive testing needed, and this needs to
replace the existing load path -- and then we move to 8.0.
1 year ago
Philip O'Toole
93a752ae0e
Better variable names
1 year ago
Philip O'Toole
1c6f691ff8
Integrate chunking - WIP
...
I need more sophisticated dechunker management.
1 year ago
Philip O'Toole
13d47b24d8
Store can load from an io.Reader
...
This may be helpful for chunked-loads.
1 year ago
Philip O'Toole
a40c43725f
More logic reversal
1 year ago
Philip O'Toole
f81aad8fd3
Revert logic for clarity
1 year ago
Philip O'Toole
21dff4a68c
Remove on-disk-startup control
...
With the move to WAL and "synchronous mode" to OFF, on-disk startup
times are very close to in-memory. There is no need for this control
anymore and it complicates the start-up code.
1 year ago
Philip O'Toole
e845e0c243
Fix remaining expression test cases
1 year ago
Philip O'Toole
f7ced46377
Count number of DB stats errors
1 year ago
Philip O'Toole
36fa7f2afd
Detect DB stats error and log
1 year ago
Philip O'Toole
7ce2c6b99a
Fix comment
1 year ago
Philip O'Toole
7432bceca3
Since we're passed a ReadCloser, close it
1 year ago
Philip O'Toole
4342650c33
Fix RecoverNode
1 year ago
Philip O'Toole
ad73779285
Periodically record actually applied index
...
This ensures the system doesn't apply uncommitted log entries to the
FSM, if it runs the in-memory startup. There have been no reports of
this in the field -- it is an edge case -- but this removes any chance
of it.
1 year ago
Philip O'Toole
abfe056b4c
Remove any -wal and -shm files on shutdown
...
If in WAL mode, open-and-close again to remove the -wal file. This is not strictly necessary, since any on-disk database files will be removed when rqlite next starts, but it leaves the directory containing the database file in a cleaner state.
1 year ago
Philip O'Toole
6cd8d30749
Fix Store-level database-backup test
1 year ago
Philip O'Toole
a6925414ef
Better comments
1 year ago
Philip O'Toole
b2f28d1181
Better WAL control
1 year ago
Philip O'Toole
2f7672d897
Enable WAL mode
1 year ago
Philip O'Toole
585f9c9c05
Use Snapshot decoder in Store
1 year ago
Philip O'Toole
58534d4815
Better name for V1 Snapshotter
1 year ago