SDSTOR-22636: support yield leader to a specific candidate#430
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the HomeObject Homestore backend’s operational/debug HTTP APIs by (1) allowing leadership yield to a specific Raft peer (optional candidate) and (2) returning richer shard metadata in shard inspection endpoints.
Changes:
- Add optional
candidatesupport for yielding PG leadership to a specific peer (HTTP + backend plumbing). - Enhance shard inspection responses (
get_shard,dump_chunk,dump_shard) to includelast_modified_timeand shardmeta. - Bump Conan package version to
4.1.18.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/lib/homestore_backend/hs_pg_manager.cpp |
Extends PG leadership yielding to optionally target a specified candidate peer. |
src/lib/homestore_backend/hs_http_manager.cpp |
Adds candidate query param validation/handling for leadership yield; returns additional shard fields in shard/chunk dump APIs. |
src/lib/homestore_backend/hs_homeobject.hpp |
Updates method signatures to accept optional leadership-yield candidate. |
src/lib/homestore_backend/hs_homeobject.cpp |
Threads the optional candidate through to the PG-level yield implementation. |
conanfile.py |
Version bump to reflect the new API capabilities. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
also return more shard details on get_shard/dump_chunk/dump_shard API
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## stable/v4.x #430 +/- ##
==============================================
Coverage ? 54.20%
==============================================
Files ? 36
Lines ? 5396
Branches ? 679
==============================================
Hits ? 2925
Misses ? 2164
Partials ? 307 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
also return more shard details on get_shard/dump_chunk/dump_shard API Co-authored-by: yawzhang <yawzhang@ebay.com>
also return more shard details on get_shard/dump_chunk/dump_shard API Co-authored-by: yawzhang <yawzhang@ebay.com>
also return more shard details on get_shard/dump_chunk/dump_shard API