Skip to content

SDSTOR-22636: support yield leader to a specific candidate#430

Merged
Besroy merged 1 commit into
eBay:stable/v4.xfrom
Besroy:yiled_leadership
Jun 8, 2026
Merged

SDSTOR-22636: support yield leader to a specific candidate#430
Besroy merged 1 commit into
eBay:stable/v4.xfrom
Besroy:yiled_leadership

Conversation

@Besroy

@Besroy Besroy commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

also return more shard details on get_shard/dump_chunk/dump_shard API

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 candidate support for yielding PG leadership to a specific peer (HTTP + backend plumbing).
  • Enhance shard inspection responses (get_shard, dump_chunk, dump_shard) to include last_modified_time and shard meta.
  • 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.

Comment thread src/lib/homestore_backend/hs_homeobject.cpp
@Besroy Besroy requested review from xiaoxichen and yuwmao June 8, 2026 08:51
also return more shard details on get_shard/dump_chunk/dump_shard API
@Besroy Besroy force-pushed the yiled_leadership branch from 19c96bd to 74e53ef Compare June 8, 2026 09:25

@xiaoxichen xiaoxichen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 51 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (stable/v4.x@5f757ac). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/lib/homestore_backend/hs_http_manager.cpp 0.00% 44 Missing ⚠️
src/lib/homestore_backend/hs_pg_manager.cpp 0.00% 5 Missing ⚠️
src/lib/homestore_backend/hs_homeobject.cpp 0.00% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Besroy Besroy merged commit e1c23e1 into eBay:stable/v4.x Jun 8, 2026
25 checks passed
Besroy added a commit to Besroy/HomeObject that referenced this pull request Jun 8, 2026
also return more shard details on get_shard/dump_chunk/dump_shard API

Co-authored-by: yawzhang <yawzhang@ebay.com>
Besroy added a commit that referenced this pull request Jun 8, 2026
also return more shard details on get_shard/dump_chunk/dump_shard API

Co-authored-by: yawzhang <yawzhang@ebay.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants