Commit 1fa3803
fix: clear KV block index entries on endpoint removal (#1738)
* fix: clear KV block index entries on endpoint removal
On EventDelete, call Index.Clear with the pod's IP address to
remove stale entries that reference blocks no longer cached on
the removed pod.
Fixes #1736
Signed-off-by: RishabhSaini <rishabhsaini01@gmail.com>
* Update pkg/epp/framework/plugins/requestcontrol/dataproducer/preciseprefixcache/extractor.go
Co-authored-by: Bongwoo Bak <bongwoobak@gmail.com>
Signed-off-by: Rishabh Saini <rishabhsaini01@gmail.com>
* fix(test): match Clear assertion to IP:Port PodIdentifier format
Signed-off-by: RishabhSaini <rishabhsaini01@gmail.com>
* Update pkg/epp/framework/plugins/requestcontrol/dataproducer/preciseprefixcache/extractor.go
Co-authored-by: Maroon Ayoub <Maroonay@gmail.com>
Signed-off-by: Rishabh Saini <rishabhsaini01@gmail.com>
* Update pkg/epp/framework/plugins/requestcontrol/dataproducer/preciseprefixcache/extractor.go
Co-authored-by: Maroon Ayoub <Maroonay@gmail.com>
Signed-off-by: Rishabh Saini <rishabhsaini01@gmail.com>
---------
Signed-off-by: RishabhSaini <rishabhsaini01@gmail.com>
Signed-off-by: Rishabh Saini <rishabhsaini01@gmail.com>
Co-authored-by: Bongwoo Bak <bongwoobak@gmail.com>
Co-authored-by: Maroon Ayoub <Maroonay@gmail.com>1 parent bcbca9a commit 1fa3803
3 files changed
Lines changed: 59 additions & 3 deletions
File tree
- pkg/epp/framework/plugins/requestcontrol/dataproducer/preciseprefixcache
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
219 | 265 | | |
220 | 266 | | |
221 | 267 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
0 commit comments