CARVIEW |
Select Language
HTTP/2 301
date: Wed, 30 Jul 2025 19:47:04 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/2eccb9e1f82f1bf71f6a2cf9ef6da7bf6232fa84
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 wss://alive-staging.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=rVMVdxUCUGXiMLFht%2F9pJxHyHPrvHqwrskQAgYl4DuIyAQCD35ny6%2Bp%2Fi3a1pouXzxwjh%2BBiqaXFYKrXBITJibNeek9C%2F%2BYUCdR1XyTvgVxEY8Ta6rO%2FtQDJtngH6OeI9O9OAYcsxIn6bOdslZHpt1WmsYmfdL6m9HAn2NyKeET08q3E5XOmQaUJagA0AKoTGxTHQmRDiKxwVppl7yofR1qf5TmAj7ARDx0OwM3K0QhOt9whU06sIpz5fTmsA6AKghR%2BSBPjBLQdbmdtyccwsQ%3D%3D--drGsFXHSZWY6%2B4y8--tcb2zUpQlsierIyQArTvFQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.332222973.1753904824; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 19:47:04 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 19:47:04 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AE48:9EA30:70E7A:91C59:688A76B8
HTTP/2 200
date: Wed, 30 Jul 2025 19:47:05 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/"c28995b00cb1c1d3843c27efb5eb2a25"
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 wss://alive-staging.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: AE48:9EA30:70EA2:91C86:688A76B8
fix: install snapshot req with offset GE 0 should not start a new ses… · databendlabs/openraft@2eccb9e · GitHub
Copy file name to clipboardExpand all lines: async-raft/src/core/install_snapshot.rs
Copy file name to clipboardExpand all lines: async-raft/src/replication/mod.rs
Copy file name to clipboardExpand all lines: async-raft/tests/api_install_snapshot.rs
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit 2eccb9e
committed
fix: install snapshot req with offset GE 0 should not start a new session.
A install-snapshot always ends with a req with data len to be 0 and
offset GE 0.
If such a req is re-sent, e.g., when timeout, the receiver will try to
install a snapshot with empty data, if it just finished the previous
install snapshot req(`snapshot_state` is None) and do not reject a
install snapshot req with offset GE 0.
Which results in a `fatal storage error`, since the storage tries to
decode an empty snapshot data.
- feature: add config `install_snapshot_timeout`.1 parent af69ccb commit 2eccb9eCopy full SHA for 2eccb9e
File tree
Expand file treeCollapse file tree
5 files changed
+86
-19
lines changedFilter options
- async-raft
- src
- core
- replication
- tests
Expand file treeCollapse file tree
5 files changed
+86
-19
lines changed+19Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 |
| |
88 | 93 |
| |
89 | 94 |
| |
| |||
118 | 123 |
| |
119 | 124 |
| |
120 | 125 |
| |
| 126 | + | |
121 | 127 |
| |
122 | 128 |
| |
123 | 129 |
| |
| |||
145 | 151 |
| |
146 | 152 |
| |
147 | 153 |
| |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
148 | 158 |
| |
149 | 159 |
| |
150 | 160 |
| |
| |||
174 | 184 |
| |
175 | 185 |
| |
176 | 186 |
| |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
177 | 192 |
| |
178 | 193 |
| |
179 | 194 |
| |
| |||
211 | 226 |
| |
212 | 227 |
| |
213 | 228 |
| |
| 229 | + | |
| 230 | + | |
| 231 | + | |
214 | 232 |
| |
215 | 233 |
| |
216 | 234 |
| |
| |||
223 | 241 |
| |
224 | 242 |
| |
225 | 243 |
| |
| 244 | + | |
226 | 245 |
| |
227 | 246 |
| |
228 | 247 |
| |
|
async-raft/src/core/install_snapshot.rs
Copy file name to clipboardExpand all lines: async-raft/src/core/install_snapshot.rs+20-6Lines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| |||
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
27 |
| - | |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| |||
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
71 |
| - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
| |||
93 | 96 |
| |
94 | 97 |
| |
95 | 98 |
| |
96 |
| - | |
| 99 | + | |
97 | 100 |
| |
98 |
| - | |
99 | 101 |
| |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
100 | 114 |
| |
101 | 115 |
| |
102 | 116 |
| |
| |||
119 | 133 |
| |
120 | 134 |
| |
121 | 135 |
| |
122 |
| - | |
| 136 | + | |
123 | 137 |
| |
124 | 138 |
| |
125 | 139 |
| |
| |||
158 | 172 |
| |
159 | 173 |
| |
160 | 174 |
| |
161 |
| - | |
| 175 | + | |
162 | 176 |
| |
163 | 177 |
| |
164 | 178 |
| |
|
+7-2Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
710 | 710 |
| |
711 | 711 |
| |
712 | 712 |
| |
713 |
| - | |
714 |
| - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
715 | 720 |
| |
716 | 721 |
| |
717 | 722 |
| |
|
async-raft/src/replication/mod.rs
Copy file name to clipboardExpand all lines: async-raft/src/replication/mod.rs+13-6Lines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
| 157 | + | |
| 158 | + | |
157 | 159 |
| |
158 | 160 |
| |
| 161 | + | |
| 162 | + | |
| 163 | + | |
159 | 164 |
| |
160 | 165 |
| |
161 | 166 |
| |
| |||
174 | 179 |
| |
175 | 180 |
| |
176 | 181 |
| |
| 182 | + | |
| 183 | + | |
177 | 184 |
| |
178 | 185 |
| |
179 | 186 |
| |
| |||
193 | 200 |
| |
194 | 201 |
| |
195 | 202 |
| |
| 203 | + | |
196 | 204 |
| |
197 | 205 |
| |
198 | 206 |
| |
| |||
918 | 926 |
| |
919 | 927 |
| |
920 | 928 |
| |
921 |
| - | |
922 |
| - | |
923 |
| - | |
924 |
| - | |
| 929 | + | |
| 930 | + | |
925 | 931 |
| |
926 | 932 |
| |
927 |
| - | |
928 |
| - | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
929 | 936 |
| |
930 | 937 |
| |
931 | 938 |
| |
|
async-raft/tests/api_install_snapshot.rs
Copy file name to clipboardExpand all lines: async-raft/tests/api_install_snapshot.rs+27-5Lines changed: 27 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 |
| |
31 | 35 |
| |
32 | 36 |
| |
| |||
35 | 39 |
| |
36 | 40 |
| |
37 | 41 |
| |
38 |
| - | |
39 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 |
| |
41 | 49 |
| |
42 | 50 |
| |
43 | 51 |
| |
44 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
45 | 55 |
| |
46 | 56 |
| |
47 | 57 |
| |
48 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
49 | 62 |
| |
50 | 63 |
| |
51 | 64 |
| |
| |||
58 | 71 |
| |
59 | 72 |
| |
60 | 73 |
| |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
61 | 83 |
| |
62 | 84 |
| |
63 | 85 |
| |
|
You can’t perform that action at this time.
0 commit comments