Commit 2095502
authored
feat(consensus): persist standalone WAL with crash-safe replay (#3763)
* feat(consensus): persist standalone WAL with crash-safe replay
* fix: handle WAL file close errors
* test: cover WAL record and prune watermark decode paths
* fix(db/memory): avoid panic when temp path creation fails
* refactor: use constant for estimatedRecordBytes
* refactor: pass WalRecordEnvelope by reference
* refactor: remove impossible WAL payload size check
* refactor: remove impossible WAL payload nil checks
* refactor: pass WAL proposal value by reference
* fix: clarify remaining bytes error
* refactor: rename consensus db package to walstore
* refactor: combine duplicate WAL number checks
* refactor: pass WAL uint64 arrays by reference
* refactor: remove redundant WAL entry checks
* test: assert memory DB copy path after copy
* refactor: clarify WAL batch record indexing1 parent 81d1e20 commit 2095502
39 files changed
Lines changed: 3494 additions & 479 deletions
File tree
- consensus
- db
- driver
- walstore
- db
- memory
- pebblev2
- pebble
- remote
- sync
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
| |||
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
48 | 87 | | |
49 | 88 | | |
50 | 89 | | |
51 | 90 | | |
52 | 91 | | |
53 | 92 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
57 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
58 | 104 | | |
59 | 105 | | |
60 | 106 | | |
| |||
77 | 123 | | |
78 | 124 | | |
79 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
80 | 130 | | |
81 | 131 | | |
82 | 132 | | |
83 | | - | |
| 133 | + | |
84 | 134 | | |
85 | 135 | | |
86 | | - | |
| 136 | + | |
87 | 137 | | |
88 | 138 | | |
89 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments