-
Notifications
You must be signed in to change notification settings - Fork 2
Refactor coordinator logic and add sharded support #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
7eb2044
Refactor coordinator logic and add sharded support
bootjp 7916d7d
Refactor SSH key handling and update .gitignore
bootjp 454b342
Fix go build command in Dockerfile
bootjp 607edc7
Refactor error messages into package-level variables
bootjp a081a09
plaintextFix alignment of error variable declarations
bootjp 122eff4
Update jepsen/src/elastickv/db.clj
bootjp f19cf76
Initial plan
Copilot 4ea2ac6
Initial plan
Copilot 13d2237
Update main.go
bootjp bcde8d2
Update kv/shard_store.go
bootjp f16c4bd
Fix ScanAt to only query groups with intersecting shard ranges
Copilot a35bc1a
Add .cache/ to .gitignore and remove from repository
Copilot 18933b5
Fix resource leaks in newRaftGroup error paths
Copilot 4b9881b
Add cache directories to .gitignore
Copilot ec0e6a5
Refactor cleanup logic to use helper function
Copilot c8c2d9f
Remove accidentally committed cache files
Copilot 2d344c9
Merge branch 'feature/multi-raft' into copilot/sub-pr-304
bootjp f3f2f58
Merge branch 'feature/multi-raft' into copilot/sub-pr-304-again
bootjp 5e43d88
Merge pull request #305 from bootjp/copilot/sub-pr-304
bootjp 61712fb
Merge branch 'feature/multi-raft' into copilot/sub-pr-304-again
bootjp b989eab
Update multiraft_runtime.go
bootjp c812a8b
Add comments clarifying resource cleanup logic
Copilot 21b8b9a
Merge pull request #306 from bootjp/copilot/sub-pr-304-again
bootjp 2bf224c
Add RawLatestCommitTS RPC and update checksums
bootjp a0ffe1d
Merge branch 'main' into feature/multi-raft
bootjp bd431fd
Merge branch 'feature/multi-raft' of github.com:bootjp/elastickv into…
bootjp 73fd50d
Fix sharded proxy reads and config parsing
bootjp ee4f377
Define sentinel errors for config parsing
bootjp c30684a
kv: share gRPC conn cache
bootjp 81f31ea
shard_config: trim raftGroups ids
bootjp 0a57a72
kv: export conn cache and reduce scan overfetch
bootjp d0a9902
adapter: fix EXEC sharding and reuse gRPC conns
bootjp 868a912
kv: centralize max commit TS lookup
bootjp 243551c
main: fix raftRedisMap defaults and close gRPC conn cache
bootjp 25d84d1
kv: reject cross-shard transactions
bootjp 8abb055
main: clean up raft groups on init failure
bootjp 565637d
kv: add LeaderProxy tests
bootjp b7bcfa3
kv: propagate context through coordinator dispatch
bootjp 64ff374
kv: close leader proxy conn cache
bootjp 0e31949
main: keep single-group raft dir layout
bootjp c541c9f
adapter: verify leadership before local reads
bootjp 73c7e06
Update kv/shard_store.go
bootjp 659f8a3
kv: fix sharded ScanAt routing and limits
bootjp 822f8fd
kv: dial gRPC connections outside cache lock
bootjp e3266a7
kv: codify shard-aware MVCC store requirement
bootjp 9759f17
kv: use shard-aware store interface instead of concrete ShardStore ch…
bootjp f79a0de
adapter: remove store type assertions by injecting leader-routed MVCC…
bootjp 4a4ddaf
kv: address latest review feedback
bootjp 7ce2245
test: cover cross-shard txn rejection and harden cleanup
bootjp 5770096
kv/adapter: harden request validation and cleanup
bootjp 9501517
Initial plan
Copilot ddd51ad
Rename RawKvPair to RawKVPair for consistent naming
Copilot 873c0c9
Merge pull request #312 from bootjp/copilot/sub-pr-304
bootjp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
Closemethod is a no-op, but theGRPCServerholds astore.MVCCStorewhich, in practice, is a*kv.LeaderRoutedStore. This store contains aGRPCConnCachethat manages gRPC connections. Without closing the store, these connections will be leaked. TheClosemethod should delegate tor.store.Close()to ensure proper resource cleanup.