Repository navigation
ControlService: Implements a subset of fdbcli commands - #12555
Conversation
11e32c4 to
4e66f55
Compare
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
| namespace utils { | ||
| Future<std::string> getSpecialKeysFailureErrorMessage(Reference<ITransaction> tr); | ||
|
|
||
| Future<std::vector<std::string>> getExcludedServers(Reference<IDatabase> db); |
There was a problem hiding this comment.
Some of the declarations are here, but I've not implemented them. Shouldn't cause an issue with build as its unused. Its used by other commands that I will create PR for once this one is ready.
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
| Future<std::vector<std::string>> getFailedServers(Reference<IDatabase> db); | ||
| Future<std::vector<std::string>> getExcludedLocalities(Reference<IDatabase> db); | ||
| Future<std::vector<std::string>> getFailedLocalities(Reference<IDatabase> db); | ||
| Future<std::set<NetworkAddress>> getInProgressExclusion(Reference<ITransaction> tr); |
There was a problem hiding this comment.
Doc these methods in .h file ? Or you think they self-explanatory?
There was a problem hiding this comment.
I can doc them. They are currently unimplemented + unused in this PR. Used by exlcude command which is upcoming PR and I can document it there?
Implements following commands from fdbcli: - GetCoordinators - ChangeCoordinators - GetStatus - GetWorkers - Include - Kill This also adds various other helper functions used by other future commands, but adding it here as it may be easier to review it here.
4e66f55 to
564a5d1
Compare
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
There was a problem hiding this comment.
Pull request overview
This PR implements a subset of fdbcli commands as gRPC services, enabling remote control operations on FoundationDB clusters. The implementation includes commands for coordinator management, status retrieval, worker operations, and process lifecycle control.
Key changes:
- Adds GetCoordinators, ChangeCoordinators, GetStatus, GetWorkers, Include, and Kill command implementations
- Introduces utility functions for special keys operations and worker interface management
- Defines special key constants for coordinator and exclusion management
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| fdbctl/include/fdbctl/ControlService.h | Adds GRPC handler definitions for the new commands |
| fdbctl/include/fdbctl/ControlCommands.h | Declares command function signatures and special key constants |
| fdbctl/ControlCommands.cpp | Implements the command logic for all new operations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Implements following commands from fdbcli: - GetCoordinators - ChangeCoordinators - GetStatus - GetWorkers - Include - Kill
Implements following commands from fdbcli:
This also adds various other helper functions used by other future commands, but adding it here as it may be easier to review it here.
I've been testing using a Python script that uses loopback cluster (similar to shown in the demo). I've not added it yet, as I will try to use some of the existing stuff we have in the repo instead of that script.
Joshua:
20251114-222310-vishesh-grpc-commands-86ccb3527ece7857 fail=1 pass=99999 remaining=0
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branchormainif this is the youngest branch)