Philip O'Toole
e6b703a0c0
Remove ability to trigger chunked-loading
...
The low-level Raft system still recognizes the Chunk command, so that
this system can interop with older versions, which might still have a
Chunk command in logs.
9 months ago
Philip O'Toole
1e34b89cd9
Don't load invalid database
9 months ago
Philip O'Toole
3cc47bceee
Revert to simpler one-shot load for SQLite files
9 months ago
Philip O'Toole
cc4addf7e0
Noop() returns ApplyFuture
9 months ago
Philip O'Toole
7032ac7319
Don't truncate to 0 trailing entries
...
The Raft code seems to be have an unsigned int overflow problem when
this happens.
9 months ago
Philip O'Toole
0ef35f1cbc
Fix restart issue after chunked-loading
9 months ago
Philip O'Toole
caca666757
Remap "load in progress" to error type
9 months ago
Philip O'Toole
5c86e2ae70
Better name
9 months ago
Philip O'Toole
c4407bf616
More comment fixes
9 months ago
Philip O'Toole
8708d51746
Fix GoDoc
9 months ago
Philip O'Toole
6fdd454632
Introduce explicit FSM type
...
This will make the code cleaner, and help clean up un-closed file
handles.
9 months ago
Philip O'Toole
abc0898c5f
Close all dechunkers at Store shutdown
9 months ago
Philip O'Toole
e3fa8584c0
Store can handle snapshotting empty WAL files
9 months ago
Philip O'Toole
36ad021fdd
Don't ignore errors
9 months ago
Philip O'Toole
e0c6861ca8
Improve test
10 months ago
Philip O'Toole
e6ddf27072
Unit test sync between chunked loading and Snapshotting
10 months ago
Philip O'Toole
59e928d058
Remove superfluous blank line
10 months ago
Philip O'Toole
df76560168
Sync and report number of loads in progress
10 months ago
Philip O'Toole
b0cd5c5a0c
Add more Load stats
10 months ago
Philip O'Toole
e0f361509a
Handle aborted chunks at lowest level
10 months ago
Philip O'Toole
dd6f386450
Refactor chunk loading
10 months ago
Philip O'Toole
94898ce43e
Track loads in progress
10 months ago
Philip O'Toole
44fa23b714
Use TrailingLogs = 0 to truncate log
10 months ago
Philip O'Toole
264e9822eb
Standardize on chunk size
10 months ago
Philip O'Toole
d726a4c780
Correct and simplify logic
10 months ago
Philip O'Toole
a96112b41d
Snapshot log after one-command load
10 months ago
Philip O'Toole
1f1ebf209f
Don't delete last log
10 months ago
Philip O'Toole
97e9b14bdf
Fix race during testing
10 months ago
Philip O'Toole
8adc11fb83
Snapshot in a goroutine
10 months ago
Philip O'Toole
4b272d04f1
Better use of counters in testing
10 months ago
Philip O'Toole
c39d3472bc
Check snapshot occurs at unit level
10 months ago
Philip O'Toole
c93447e29f
Delete chunked load entries in log after loading
10 months ago
Philip O'Toole
0dcc67f6f1
Perform full snapshot after chunked load
...
This must happen as chunked loading directly changes the SQLite file,
invalidating any existing Snapshots. Also, add missing unit tests for
chunked loading.
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
8211af961d
Move some VACUUM checks to the Store
10 months ago
Philip O'Toole
5c7996fd98
Support optional VACUUM on backup
10 months ago
Philip O'Toole
a0bf10b021
Move VACUUM to DB layer
10 months ago
Philip O'Toole
f26f15476e
Actually add Provider type
10 months ago
Philip O'Toole
dfb8a60c17
Move Store Provide to a distinct type
10 months ago
Philip O'Toole
3ae4255e62
Backup-related cleanups
10 months ago
Philip O'Toole
4c31c480f5
Better name
10 months ago
Philip O'Toole
5a8a2744ff
Support skipping verifying frame data
...
This halves the Compacting Scan time, and doesn't seem necessary since
rqlite is the only system writing the WAL files.
10 months ago
Philip O'Toole
ee13427c67
Tigher logging
10 months ago
Philip O'Toole
bd9e96ea02
Integrate Compacting WAL writer
10 months ago
Philip O'Toole
d53a34f765
Don't log too much
10 months ago
Philip O'Toole
ba98e88a7b
Update store.go
10 months ago
Philip O'Toole
70d5e6de34
Check join and notify addresses are resolvable
10 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
c11d059551
Better function name
11 months ago