CARVIEW |
Select Language
HTTP/2 301
date: Mon, 28 Jul 2025 16:27:35 GMT
content-type: text/html; charset=utf-8
content-length: 0
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
location: https://github.com/databendlabs/openraft/commit/8cd24ba0f0212e94e61f21a7be0ce0806fcc66d5
cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
set-cookie: _gh_sess=dkJQswGi5CDSvrO0dllh8b7CruldOaZkkbN5RGtLsA5xHioGaFnH%2FIHH8lG9ljyOF2l9BrgAg%2F7RnMWYnXvMy4EKbZmGjnq3c0woFDsRukPEUtU9PTeqqwvrMIJfMzqffciRW71iaJm4M4Xv8MJTFdQSMEVPftsBSt%2BwS%2Fuvg9ArzGtiwv47uTm29VsmcsUK%2B6v5lDVV6z1Y6ns8x%2BgUoqpg3OOm%2BcaeRrO2Q2RfAemFr2Cqeji5gikwXAdvFQjHPgciENZFuKH6C8yrQ0x0gg%3D%3D--EGISczXauSt4w%2FNQ--HMvk1JhmEJTBHWUrQc0TEA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1644891688.1753720054; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 16:27:34 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 16:27:34 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8B6A:290E4F:152162F:1A03C80:6887A4F6
HTTP/2 200
date: Mon, 28 Jul 2025 16:27:36 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/databendlabs/openraft.git
etag: W/"1cb7ceafa1933169972da556b7abe01b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
x-github-request-id: 8B6A:290E4F:1521661:1A03CBE:6887A4F6
fix: RaftCore.entries_cache is inconsistent with storage. removed it. · databendlabs/openraft@8cd24ba · GitHub
Copy file name to clipboardExpand all lines: async-raft/src/core/append_entries.rs
Copy file name to clipboardExpand all lines: async-raft/src/replication/mod.rs
Copy file name to clipboardExpand all lines: async-raft/tests/snapshot_uses_prev_snap_membership.rs
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit 8cd24ba
committed
fix: RaftCore.entries_cache is inconsistent with storage. removed it.
- When leader changes, `entries_cache` is cleared.
Thus there may be cached entries wont be applied to state machine.
- When applying finished, the applied entries are not removed from the
cache.
Thus there could be entries being applied more than once.1 parent eee8e53 commit 8cd24baCopy full SHA for 8cd24ba
File tree
Expand file treeCollapse file tree
5 files changed
+93
-72
lines changedFilter options
- async-raft
- src
- core
- replication
- tests
- memstore/src
Expand file treeCollapse file tree
5 files changed
+93
-72
lines changedasync-raft/src/core/append_entries.rs
Copy file name to clipboardExpand all lines: async-raft/src/core/append_entries.rs+46-34Lines changed: 46 additions & 34 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
| |||
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
64 |
| - | |
65 |
| - | |
66 |
| - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
67 | 68 |
| |
68 |
| - | |
69 |
| - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 |
| |
71 | 75 |
| |
72 | 76 |
| |
| 77 | + | |
73 | 78 |
| |
74 | 79 |
| |
75 | 80 |
| |
| |||
154 | 159 |
| |
155 | 160 |
| |
156 | 161 |
| |
157 |
| - | |
| 162 | + | |
158 | 163 |
| |
159 | 164 |
| |
160 | 165 |
| |
| |||
196 | 201 |
| |
197 | 202 |
| |
198 | 203 |
| |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
205 | 208 |
| |
206 | 209 |
| |
207 | 210 |
| |
208 | 211 |
| |
209 |
| - | |
| 212 | + | |
| 213 | + | |
210 | 214 |
| |
| 215 | + | |
211 | 216 |
| |
212 | 217 |
| |
213 |
| - | |
| 218 | + | |
| 219 | + | |
214 | 220 |
| |
| 221 | + | |
215 | 222 |
| |
216 | 223 |
| |
217 |
| - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
218 | 230 |
| |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 | 231 |
| |
225 | 232 |
| |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
237 | 245 |
| |
238 | 246 |
| |
239 | 247 |
| |
240 |
| - | |
| 248 | + | |
241 | 249 |
| |
242 | 250 |
| |
243 | 251 |
| |
244 |
| - | |
| 252 | + | |
| 253 | + | |
245 | 254 |
| |
| 255 | + | |
246 | 256 |
| |
247 | 257 |
| |
248 | 258 |
| |
| |||
254 | 264 |
| |
255 | 265 |
| |
256 | 266 |
| |
257 |
| - | |
| 267 | + | |
258 | 268 |
| |
259 | 269 |
| |
260 | 270 |
| |
261 | 271 |
| |
| 272 | + | |
| 273 | + | |
262 | 274 |
| |
263 | 275 |
| |
264 | 276 |
| |
|
+4-11Lines changed: 4 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 | 46 |
| |
48 | 47 |
| |
49 | 48 |
| |
| |||
121 | 120 |
| |
122 | 121 |
| |
123 | 122 |
| |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 | 123 |
| |
133 | 124 |
| |
134 | 125 |
| |
| |||
180 | 171 |
| |
181 | 172 |
| |
182 | 173 |
| |
183 |
| - | |
184 | 174 |
| |
185 | 175 |
| |
186 | 176 |
| |
| |||
353 | 343 |
| |
354 | 344 |
| |
355 | 345 |
| |
356 |
| - | |
357 | 346 |
| |
358 | 347 |
| |
359 | 348 |
| |
| |||
479 | 468 |
| |
480 | 469 |
| |
481 | 470 |
| |
| 471 | + | |
| 472 | + | |
| 473 | + | |
482 | 474 |
| |
483 | 475 |
| |
484 | 476 |
| |
| 477 | + | |
485 | 478 |
| |
486 | 479 |
| |
487 | 480 |
| |
|
async-raft/src/replication/mod.rs
Copy file name to clipboardExpand all lines: async-raft/src/replication/mod.rs+2-13Lines changed: 2 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
| |||
684 | 683 |
| |
685 | 684 |
| |
686 | 685 |
| |
687 |
| - | |
688 |
| - | |
689 |
| - | |
690 |
| - | |
691 |
| - | |
692 |
| - | |
| 686 | + | |
693 | 687 |
| |
694 | 688 |
| |
695 | 689 |
| |
| |||
795 | 789 |
| |
796 | 790 |
| |
797 | 791 |
| |
798 |
| - | |
799 |
| - | |
800 |
| - | |
801 |
| - | |
802 |
| - | |
803 |
| - | |
| 792 | + | |
804 | 793 |
| |
805 | 794 |
| |
806 | 795 |
| |
|
async-raft/tests/snapshot_uses_prev_snap_membership.rs
Copy file name to clipboardExpand all lines: async-raft/tests/snapshot_uses_prev_snap_membership.rs+18-5Lines changed: 18 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
| |||
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
65 |
| - | |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
71 | 72 |
| |
72 |
| - | |
73 |
| - | |
| 73 | + | |
| 74 | + | |
74 | 75 |
| |
75 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 |
| |
77 | 82 |
| |
78 | 83 |
| |
| |||
111 | 116 |
| |
112 | 117 |
| |
113 | 118 |
| |
114 |
| - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
115 | 124 |
| |
116 | 125 |
| |
117 | 126 |
| |
| |||
124 | 133 |
| |
125 | 134 |
| |
126 | 135 |
| |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + |
+23-9Lines changed: 23 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 |
| |
182 |
| - | |
183 | 185 |
| |
| 186 | + | |
| 187 | + | |
| 188 | + | |
184 | 189 |
| |
185 | 190 |
| |
186 | 191 |
| |
| |||
282 | 287 |
| |
283 | 288 |
| |
284 | 289 |
| |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
285 | 294 |
| |
286 | 295 |
| |
287 | 296 |
| |
| |||
309 | 318 |
| |
310 | 319 |
| |
311 | 320 |
| |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
312 | 326 |
| |
313 | 327 |
| |
314 | 328 |
| |
| |||
356 | 370 |
| |
357 | 371 |
| |
358 | 372 |
| |
359 |
| - | |
| 373 | + | |
360 | 374 |
| |
361 | 375 |
| |
362 | 376 |
| |
|
You can’t perform that action at this time.
0 commit comments