yugabyte/yugabyte-db

[DocDB] Only allow one RBS session per tablet/peer combo

Open

#26,144 建立於 2025年2月21日

在 GitHub 查看
 (0 留言) (0 反應) (1 負責人)C (1,003 fork)batch import
area/docdbgood first issuekind/enhancementpriority/medium

倉庫指標

Star
 (8,229 star)
PR 合併指標
 (平均合併 17天 21小時) (30 天內合併 92 個 PR)

描述

Jira Link: DB-15477

Description

https://phorge.dev.yugabyte.com/diffusion/YBDB/browse/master/src/yb/tserver/remote_bootstrap_service.cc$394

  MonoTime now = MonoTime::Now();
  const string session_id = Substitute("$0-$1-$2", requestor_uuid, tablet_id, now.ToString());

allows for multiple RBS sessions for the same follower. This should be unnecessary and can lead to ooms if left uncontrolled.

We should only allow at most 1 pending RBS session for a follower, and end previous sessions when a new session is created.

Issue Type

kind/enhancement

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

貢獻者指南