Skip to content

Commit 1bb5b4e

Browse files
authored
[Feature](Recycler) Batch delete optimization for versioned tablet recycling (#59247)
### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
1 parent 25c864d commit 1bb5b4e

File tree

5 files changed

+813
-30
lines changed

5 files changed

+813
-30
lines changed

cloud/src/common/bvars.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_bytes_object_deleted(
180180
BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_rowset_scanned_num(
181181
"recycler", "packed_file_rowset_scanned_num");
182182

183+
BvarStatusWithTag<int64_t> g_bvar_recycler_batch_delete_rowset_plan_count(
184+
"recycler", "batch_delete_rowset_plan_count");
185+
BvarStatusWithTag<int64_t> g_bvar_recycler_batch_delete_failures(
186+
"recycler", "batch_delete_failures");
187+
183188
// txn_kv's bvars
184189
bvar::LatencyRecorder g_bvar_txn_kv_get("txn_kv", "get");
185190
bvar::LatencyRecorder g_bvar_txn_kv_range_get("txn_kv", "range_get");

cloud/src/common/bvars.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,9 @@ extern BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_recycle_cost_ms;
666666
extern BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_scanned_kv_num;
667667
extern BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_corrected_kv_num;
668668
extern BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_recycled_object_num;
669+
670+
extern BvarStatusWithTag<int64_t> g_bvar_recycler_batch_delete_rowset_plan_count;
671+
extern BvarStatusWithTag<int64_t> g_bvar_recycler_batch_delete_failures;
669672
extern BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_bytes_object_deleted;
670673
extern BvarStatusWithTag<int64_t> g_bvar_recycler_packed_file_rowset_scanned_num;
671674

0 commit comments

Comments
 (0)