Ben Johnson
3c4fd152c9
Add more checksum logging
2021-01-18 06:38:03 -07:00
Ben Johnson
d259d9b9e3
Fix checksum logging
2021-01-17 10:19:39 -07:00
Ben Johnson
90a1d959d4
Remove size from s3 filenames
2021-01-17 10:02:06 -07:00
Ben Johnson
04d75507e3
Fix checksum hex padding
2021-01-17 09:52:09 -07:00
Ben Johnson
4b65e6a88f
Log validation position
2021-01-17 07:38:13 -07:00
Ben Johnson
07a65cbac7
Fix crc64 unit test
2021-01-16 10:04:03 -07:00
Ben Johnson
6ac6a8536d
Obtain write lock during validation.
2021-01-16 09:27:43 -07:00
Ben Johnson
25fec29e1a
Clear last position on replica sync error
2021-01-16 07:45:08 -07:00
Ben Johnson
cbc2dce6dc
Add busy timeout
2021-01-16 07:33:32 -07:00
Ben Johnson
1b8cfc8a41
Add validation interval
2021-01-15 16:37:04 -07:00
Ben Johnson
b94ee366e5
Fix snapshot only restore
2021-01-15 13:12:15 -07:00
Ben Johnson
e1c9e09161
Update wal segment naming
2021-01-14 15:26:29 -07:00
Ben Johnson
1e4e9633cc
Add s3 sync interval
2021-01-14 15:04:26 -07:00
Ben Johnson
a42f83f3cb
Add LITESTREAM_CONFIG env var
2021-01-13 13:17:38 -07:00
Ben Johnson
57a02a8628
S3 replica
2021-01-13 10:14:54 -07:00
Ben Johnson
faa5765745
Add retention policy, remove WAL subdir
2021-01-12 15:22:37 -07:00
Ben Johnson
1fa1313b0b
Add trace logging.
2021-01-11 11:04:29 -07:00
Ben Johnson
bcdb553267
Use database owner/group
2021-01-11 09:39:08 -07:00
Ben Johnson
60cb2c97ca
Set default max checkpoint.
2021-01-10 09:46:27 -07:00
Ben Johnson
8871d75a8e
Fix max checkpoint size check
2021-01-05 14:17:13 -07:00
Ben Johnson
c22eea13ad
Add checkpoint tests
2021-01-05 14:07:17 -07:00
Ben Johnson
f4d055916a
Add DB sync tests
2021-01-05 13:59:16 -07:00
Ben Johnson
979cabcdb9
Add some DB.Sync() tests
2021-01-01 10:02:03 -07:00
Ben Johnson
5134bc3328
Add test coverage for DB.CRC64
2021-01-01 09:26:23 -07:00
Ben Johnson
78d9de6512
Add DB path tests
2021-01-01 09:00:23 -07:00
Ben Johnson
065f641526
Change validation to use CRC-64
2021-01-01 08:24:11 -07:00
Ben Johnson
9d0e79c2cf
Add db metrics
2020-12-31 16:30:56 -07:00
Ben Johnson
da5087c14c
Fix vet issue
2020-12-31 10:56:29 -07:00
Ben Johnson
3b9275488d
Add 'validate' command
2020-12-31 10:36:48 -07:00
Ben Johnson
11d7d22383
Add 'wal' command
2020-12-30 16:03:23 -07:00
Ben Johnson
ffc25e2654
Add 'snapshots' command.
2020-12-30 15:31:35 -07:00
Ben Johnson
5cc78fafa0
Clean shadow WAL
2020-12-30 14:48:58 -07:00
Ben Johnson
0b12efb135
Add checkpoint interval
2020-12-30 12:07:02 -07:00
Ben Johnson
d4891f33da
Refactor DB.checkpoint() to accept any mode.
...
This was originally meant to add a TRUNCATE checkpoint before starting
a new generation, however, there is a write lock that blocks the
checkpoint and it's more complicated to roll it back and attempt the
truncation.
2020-12-29 17:02:33 -07:00
Ben Johnson
42a33cccf4
Group WAL files in file replica
2020-12-29 16:40:28 -07:00
Ben Johnson
6f604e29b0
Fix unit tests.
2020-12-29 12:56:50 -07:00
Ben Johnson
41448ceb89
Rename replicator to replica
2020-12-29 12:49:23 -07:00
Ben Johnson
81e99c8035
Add 'restore' command.
2020-12-29 12:37:42 -07:00
Ben Johnson
44973dbbbc
intermediate
2020-12-27 09:56:23 -07:00
Ben Johnson
98014f4e49
Add generations command
2020-12-26 09:39:21 -07:00
Ben Johnson
89fd441e9a
Remove tmp files on start up
2020-12-24 16:42:45 -07:00
Ben Johnson
87c8cea851
Verify replicator name uniqueness
2020-12-24 16:35:52 -07:00
Ben Johnson
9fa526f2c3
File replicator snapshot
2020-12-24 15:41:45 -07:00
Ben Johnson
341eac268c
Basic file replication working with WAL
2020-12-24 13:23:52 -07:00
Ben Johnson
9fe52ce3f5
Fix rollover issue under load
2020-12-23 13:10:04 -07:00
Ben Johnson
5218a1f2c2
Add checkpoint seq no verification.
2020-12-23 11:15:10 -07:00
Ben Johnson
311f47fe98
Fix wal rollover
2020-12-22 16:56:23 -07:00
Ben Johnson
79d19e25e6
Clean up old generations on startup
2020-12-22 13:52:31 -07:00
Ben Johnson
2bbe5d91bf
Add salt & checksum checking
2020-12-21 16:59:15 -07:00
Ben Johnson
f4819efbeb
Add checkpointing.
2020-12-20 08:01:47 -07:00