Commit 624793f
authored
fix(knowledge): bound every connector-lease ACL transaction to one short page (#8195)
* fix(knowledge): bound every connector-lease ACL transaction to one short page
* fix(knowledge): isolate stale sweep lock failures, close failed disables, update ACL test callers
* fix(knowledge): prove connector leases last, page ACL writes by projection rows, and skip unchanged work
* fix(knowledge): row-bound every observation page, size ACL pages from locked chunk counts, and check the sweep budget per page
* fix(knowledge): stop every ACL page walker at the run budget and keep pending rewrites until they finish
* test(knowledge): seed filled projection rows so the fan-out test holds on any provisioned database
* fix(knowledge): check the page deadline after the lease heartbeat
* test(knowledge): expire the restore budget at the heartbeat before the next window1 parent 7bbe3f5 commit 624793f
21 files changed
Lines changed: 3258 additions & 493 deletions
File tree
- .github/workflows
- apps/sim
- app/api/knowledge/connectors/member-sync
- lib/knowledge
- __integration__
- access
- connectors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
104 | 119 | | |
105 | 120 | | |
106 | 121 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
163 | 171 | | |
164 | 172 | | |
165 | 173 | | |
| |||
0 commit comments