Repository navigation
Implement gRPC multi-node support for ShardRPCClient - #213
Merged
Merged
Conversation
- Add gRPC client implementation with channel management and keepalive - Implement retry logic with exponential backoff - Add connection pooling and timeout handling - Categorize errors as retryable vs non-retryable - Create ShardRPCServer for handling incoming RPC requests - Add comprehensive tests for in-process and gRPC modes - Maintain backward compatibility with in-process simulation Co-authored-by: makr-code <[email protected]>
- Create comprehensive usage guide with examples - Document configuration options and error handling - Add migration guide for upgrading from in-process to gRPC - Include troubleshooting section Co-authored-by: makr-code <[email protected]>
- Mark Shard RPC Client Multi-Node as COMPLETE - Add implementation summary and metrics - Document all delivered features and tests - Update feature overview table Co-authored-by: makr-code <[email protected]>
- Remove unnecessary forward declarations for gRPC types - Improve loopback endpoint detection (add ::1, 0.0.0.0 support) - Update tests to use localhost with unused ports instead of non-routable IPs - Use THEMIS_VERSION_STRING compile definition instead of hardcoded version Co-authored-by: makr-code <[email protected]>
Remove 0.0.0.0 from loopback detection as it's used for server binding, not client connections. Only localhost, 127.0.0.1, and ::1 should trigger in-process mode. Co-authored-by: makr-code <[email protected]>
Document that high port numbers in failure tests are intentional and designed to fail connection for testing retry logic. Co-authored-by: makr-code <[email protected]>
Create SHARD_RPC_IMPLEMENTATION_COMPLETE.md documenting: - All acceptance criteria met - Complete deliverables list (1,050+ lines) - Key features and technical decisions - Testing coverage and next steps - Migration guide and performance targets Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Implement multi-node support for gRPC client
Implement gRPC multi-node support for ShardRPCClient
Jan 4, 2026
makr-code
marked this pull request as ready for review
January 5, 2026 05:32
9 tasks
7 of 25 tasks
Copilot AI
added a commit
that referenced
this pull request
May 7, 2026
…backs Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/9bd5905b-b43a-464b-8177-f009763e0240 Co-authored-by: makr-code <[email protected]>
11 of 25 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces in-process simulation with real gRPC connections for multi-node cluster deployments while maintaining backward compatibility for single-node setups.
Changes
Client (
src/sharding/shard_rpc_client.cpp)Server (
src/sharding/shard_rpc_server.cpp)Tests (
tests/test_shard_rpc_grpc.cpp)Usage
Technical Decisions
THEMIS_VERSION_STRINGfor healthcheck responsesProto
Existing
proto/sharding/shard_rpc.protoalready defines all required messages (PrepareTransaction, CommitTransaction, etc). No proto changes needed.Documentation
docs/sharding/shard_rpc_client_multinode.mdSHARD_RPC_IMPLEMENTATION_COMPLETE.mdWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.