CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 11:22:58 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/alibaba/sentinel-golang.git
etag: W/"42c6d3714d7e84f582b891e9ea1e6d7c"
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
set-cookie: _gh_sess=%2BF6upltIHhmn9sNpFL3aULkq9bE4vVfHDYOSqYWzgU7oZZfc451u5fGYxT85SHmC1gNN4MA4h4SiXq2OfuDiUn0DOhZq1jek64IZKywf4Nz9QRt38DOWYrLWska2DUAgj3Di89vf9TI04F2%2FBhSdo5GCFHrjvBWNIH2sSjCobC9QdyO3cWOvepp%2FSLCvNbiXbxxQBaD2szlRnyrsjAuFrX5xu6D6N57pbSebyEL6s4R2iZzNvf8CkB9%2Fpv7qVJma2gn6EiHJdplLWhx7%2BR7Wiw%3D%3D--OPAZAbbelhU1%2BA2u--ztsi7w%2FOYnYZPnkS%2FQE52g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1586546885.1753615377; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:22:57 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:22:57 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E830:3ED739:D902D7:11EC4A3:68860C11
Fix the bug of circuit breaker half-open state transformation when re… · alibaba/sentinel-golang@d12f611 · GitHub
Copy file name to clipboard
Copy file name to clipboardExpand all lines: core/base/slot_chain_test.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule_manager.go
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 445
Commit d12f611
authored
Fix the bug of circuit breaker half-open state transformation when request is blocked by upcoming rules (#202)
* Refactor the workflow to fix the bug that circuit breaker may remain half-open state forever when the request is blocked by upcoming rules: revert the state change in exit handler (as a temporary workaround)
* Add exit handler in Entry as a per-invocation hook.1 parent ff74314 commit d12f611Copy full SHA for d12f611
File tree
Expand file treeCollapse file tree
10 files changed
+393
-18
lines changedFilter options
- api
- core
- base
- circuitbreaker
- tests/core/circuitbreaker
Expand file treeCollapse file tree
10 files changed
+393
-18
lines changed+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
| 143 | + | |
143 | 144 |
| |
144 | 145 |
| |
145 | 146 |
| |
|
+11-1Lines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
| |||
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 |
| |
25 | 34 |
| |
26 | 35 |
| |
| |||
79 | 88 |
| |
80 | 89 |
| |
81 | 90 |
| |
| 91 | + | |
82 | 92 |
| |
83 | 93 |
| |
84 | 94 |
| |
|
+31-5Lines changed: 31 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
| 6 | + | |
5 | 7 |
| |
6 | 8 |
| |
| 9 | + | |
| 10 | + | |
7 | 11 |
| |
8 | 12 |
| |
9 |
| - | |
| 13 | + | |
10 | 14 |
| |
| 15 | + | |
| 16 | + | |
11 | 17 |
| |
12 | 18 |
| |
13 | 19 |
| |
| |||
17 | 23 |
| |
18 | 24 |
| |
19 | 25 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 |
| |
24 | 31 |
| |
25 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 |
| |
27 | 38 |
| |
28 | 39 |
| |
| |||
56 | 67 |
| |
57 | 68 |
| |
58 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 |
| |
60 | 74 |
| |
61 | 75 |
| |
62 | 76 |
| |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
63 | 90 |
| |
64 | 91 |
| |
65 |
| - | |
66 | 92 |
| |
67 | 93 |
| |
68 | 94 |
|
core/base/entry_test.go
Copy file name to clipboard+26Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + |
+3-2Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
|
core/base/slot_chain_test.go
Copy file name to clipboardExpand all lines: core/base/slot_chain_test.go+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
| 223 | + | |
223 | 224 |
| |
224 | 225 |
| |
225 | 226 |
| |
| |||
261 | 262 |
| |
262 | 263 |
| |
263 | 264 |
| |
| 265 | + | |
264 | 266 |
| |
265 | 267 |
| |
266 | 268 |
| |
|
core/circuitbreaker/circuit_breaker.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/circuit_breaker.go+25-7Lines changed: 25 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
| 92 | + | |
92 | 93 |
| |
93 | 94 |
| |
94 | 95 |
| |
| |||
137 | 138 |
| |
138 | 139 |
| |
139 | 140 |
| |
140 |
| - | |
| 141 | + | |
141 | 142 |
| |
142 | 143 |
| |
143 | 144 |
| |
144 | 145 |
| |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
145 | 163 |
| |
146 | 164 |
| |
147 | 165 |
| |
| |||
215 | 233 |
| |
216 | 234 |
| |
217 | 235 |
| |
218 |
| - | |
| 236 | + | |
219 | 237 |
| |
220 | 238 |
| |
221 | 239 |
| |
222 | 240 |
| |
223 | 241 |
| |
224 |
| - | |
| 242 | + | |
225 | 243 |
| |
226 | 244 |
| |
227 | 245 |
| |
| |||
399 | 417 |
| |
400 | 418 |
| |
401 | 419 |
| |
402 |
| - | |
| 420 | + | |
403 | 421 |
| |
404 | 422 |
| |
405 | 423 |
| |
406 | 424 |
| |
407 | 425 |
| |
408 |
| - | |
| 426 | + | |
409 | 427 |
| |
410 | 428 |
| |
411 | 429 |
| |
| |||
579 | 597 |
| |
580 | 598 |
| |
581 | 599 |
| |
582 |
| - | |
| 600 | + | |
583 | 601 |
| |
584 | 602 |
| |
585 | 603 |
| |
586 | 604 |
| |
587 | 605 |
| |
588 |
| - | |
| 606 | + | |
589 | 607 |
| |
590 | 608 |
| |
591 | 609 |
| |
|
core/circuitbreaker/rule.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule.go+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
|
core/circuitbreaker/rule_manager.go
Copy file name to clipboardExpand all lines: core/circuitbreaker/rule_manager.go+7-2Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
| 277 | + | |
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
280 | 281 |
| |
281 |
| - | |
282 |
| - | |
283 | 282 |
| |
284 | 283 |
| |
285 | 284 |
| |
286 | 285 |
| |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
287 | 292 |
| |
288 | 293 |
| |
289 | 294 |
| |
|
You can’t perform that action at this time.
0 commit comments