Commit 2ea66a5
Remove unused ControllerRequestContext and requestHandler parameter
Changes:
- Remove ControllerRequestContext parameter from StoreRequestHandler.getRepushInfo()
since no ACL check is required for this read-only operation
- Remove StoreRequestHandler parameter from StoresRoutes.getRepushInfo() method
and use the class member storeRequestHandler instead
- Remove buildRequestContext() calls from both HTTP and gRPC layers
- Remove private buildRequestContext() methods from StoresRoutes and StoreGrpcServiceImpl
- Update AdminSparkServer to call getRepushInfo(admin) without requestHandler parameter
- Update all test mocks to match new signatures
This simplifies the code by removing unnecessary context building and parameter
passing when no ACL check is needed.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 832f26d commit 2ea66a5
7 files changed
Lines changed: 16 additions & 57 deletions
File tree
- services/venice-controller/src
- main/java/com/linkedin/venice/controller
- grpc/server
- server
- test/java/com/linkedin/venice/controller
- grpc/server
- server
Lines changed: 1 addition & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 176 | | |
181 | | - | |
| 177 | + | |
182 | 178 | | |
183 | 179 | | |
184 | 180 | | |
| |||
202 | 198 | | |
203 | 199 | | |
204 | 200 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 201 | | |
216 | 202 | | |
217 | 203 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
| 604 | + | |
607 | 605 | | |
608 | 606 | | |
609 | 607 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | 267 | | |
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
273 | | - | |
274 | | - | |
| 272 | + | |
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
| |||
Lines changed: 2 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | 267 | | |
271 | | - | |
| 268 | + | |
272 | 269 | | |
273 | 270 | | |
274 | 271 | | |
| |||
1232 | 1229 | | |
1233 | 1230 | | |
1234 | 1231 | | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | 1232 | | |
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
475 | 474 | | |
476 | 475 | | |
477 | 476 | | |
478 | | - | |
479 | | - | |
| 477 | + | |
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
| |||
494 | 492 | | |
495 | 493 | | |
496 | 494 | | |
497 | | - | |
| 495 | + | |
498 | 496 | | |
499 | 497 | | |
500 | 498 | | |
| |||
515 | 513 | | |
516 | 514 | | |
517 | 515 | | |
518 | | - | |
519 | | - | |
| 516 | + | |
520 | 517 | | |
521 | 518 | | |
522 | 519 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| |||
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
717 | | - | |
| 716 | + | |
718 | 717 | | |
719 | 718 | | |
720 | 719 | | |
| |||
728 | 727 | | |
729 | 728 | | |
730 | 729 | | |
731 | | - | |
732 | | - | |
| 730 | + | |
733 | 731 | | |
734 | 732 | | |
735 | 733 | | |
| |||
741 | 739 | | |
742 | 740 | | |
743 | 741 | | |
744 | | - | |
745 | | - | |
| 742 | + | |
746 | 743 | | |
747 | 744 | | |
748 | 745 | | |
| |||
767 | 764 | | |
768 | 765 | | |
769 | 766 | | |
770 | | - | |
771 | | - | |
| 767 | + | |
772 | 768 | | |
773 | 769 | | |
774 | 770 | | |
| |||
777 | 773 | | |
778 | 774 | | |
779 | 775 | | |
780 | | - | |
781 | | - | |
| 776 | + | |
782 | 777 | | |
783 | 778 | | |
784 | 779 | | |
| |||
0 commit comments