Skip to content

Commit

Permalink
[#21899][#19715] docdb: Move some heartbeat code out of catalog_manag…
Browse files Browse the repository at this point in the history
…er.cc

Summary:
This diff moves some heartbeat code out of catalog_manager.cc into `master_heartbeat_service.cc`, which is the entry point for the `TsHeartbeat` RPC. This makes it easier to follow the main heartbeat code and makes CatalogManager smaller.
Jira: DB-10798, DB-8520

Test Plan: Existing tests

Reviewers: zdrudi, hsunder

Reviewed By: zdrudi

Subscribers: ybase, bogdan

Differential Revision: https://phorge.dev.yugabyte.com/D33966
  • Loading branch information
Anubhav Srivastava committed Apr 29, 2024
1 parent 333d962 commit 584f3e3
Show file tree
Hide file tree
Showing 4 changed files with 1,246 additions and 1,175 deletions.
2 changes: 2 additions & 0 deletions src/yb/master/catalog_entity_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ class TabletInfo : public RefCountedThreadSafe<TabletInfo>,
// Accessors for the latest known tablet replica locations.
// These locations include only the members of the latest-reported Raft
// configuration whose tablet servers have ever heartbeated to this Master.
// TODO: Make Set/Update private so users are forced to use the catalog manager wrappers which
// update the tablet locations version.
void SetReplicaLocations(std::shared_ptr<TabletReplicaMap> replica_locations);
std::shared_ptr<const TabletReplicaMap> GetReplicaLocations() const;
Result<TSDescriptor*> GetLeader() const;
Expand Down
Loading

0 comments on commit 584f3e3

Please sign in to comment.