Commit 199e5fb
authored
feat(shard-distributor): add GetMetadata and GetNamespace methods to executor interface (#7477)
**What changed?**
Added `GetMetadata()` and `GetNamespace()` methods to the Executor
interface, with implementations in executorImpl and updated mocks.
**Why?**
Allow components that interact with executors to access their metadata
(like gRPC address) and namespace without additional lookups. This is
needed for the canary ping handler to identify which executor is
responding.
**How did you test it?**
Verified methods return correct values. Updated mock to include new
methods.
**Potential risks**
None - this only adds interface methods that return existing data.
**Release notes**
**Documentation Changes**
None
Signed-off-by: Jakob Haahr Taankvist <[email protected]>1 parent 6a4ab3d commit 199e5fb
File tree
3 files changed
+21
-0
lines changed- service/sharddistributor/client/executorclient
3 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
465 | 469 | | |
466 | 470 | | |
467 | 471 | | |
| |||
Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments