Skip to content

Commit bb1452b

Browse files
committed
fix
1 parent b345ed1 commit bb1452b

8 files changed

Lines changed: 12 additions & 4 deletions

File tree

be/src/cloud/cloud_meta_mgr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2483,7 +2483,9 @@ Status CloudMetaMgr::get_cluster_status(
24832483
GetClusterStatusResponse resp;
24842484
req.add_cloud_unique_ids(config::cloud_unique_id);
24852485

2486-
Status s = retry_rpc("get cluster status", req, &resp, &MetaService_Stub::get_cluster_status);
2486+
Status s = retry_rpc(MetaServiceRPC::GET_CLUSTER_STATUS, req, &resp,
2487+
&MetaService_Stub::get_cluster_status,
2488+
{.host_limiters = host_level_ms_rpc_rate_limiters_});
24872489
if (!s.ok()) {
24882490
return s;
24892491
}

be/src/cloud/cloud_ms_rpc_rate_limiters.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ namespace doris::cloud {
5757
X(COMMIT_RESTORE_JOB, commit_restore_job, "commit restore job") \
5858
X(FINISH_RESTORE_JOB, finish_restore_job, "finish restore job") \
5959
X(LIST_SNAPSHOTS, list_snapshots, "list snapshots") \
60+
X(GET_CLUSTER_STATUS, get_cluster_status, "get cluster status") \
6061
X(UPDATE_PACKED_FILE_INFO, update_packed_file_info, "update packed file info")
6162

6263
// Enum class for Meta Service RPC types

be/src/cloud/config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ DEFINE_mInt32(ms_rpc_qps_prepare_restore_job, "-1");
201201
DEFINE_mInt32(ms_rpc_qps_commit_restore_job, "-1");
202202
DEFINE_mInt32(ms_rpc_qps_finish_restore_job, "-1");
203203
DEFINE_mInt32(ms_rpc_qps_list_snapshots, "-1");
204+
DEFINE_mInt32(ms_rpc_qps_get_cluster_status, "-1");
204205
DEFINE_mInt32(ms_rpc_qps_update_packed_file_info, "-1");
205206

206207
// Table-level backpressure handling config

be/src/cloud/config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ DECLARE_mInt32(ms_rpc_qps_prepare_restore_job);
245245
DECLARE_mInt32(ms_rpc_qps_commit_restore_job);
246246
DECLARE_mInt32(ms_rpc_qps_finish_restore_job);
247247
DECLARE_mInt32(ms_rpc_qps_list_snapshots);
248+
DECLARE_mInt32(ms_rpc_qps_get_cluster_status);
248249
DECLARE_mInt32(ms_rpc_qps_update_packed_file_info);
249250

250251
// ============== Table-level backpressure handling config ==============

be/src/io/cache/cached_remote_file_reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
#include "cloud/config.h"
3939
#include "common/compiler_util.h" // IWYU pragma: keep
4040
#include "common/config.h"
41-
#include "cpp/s3_rate_limiter.h"
4241
#include "cpp/sync_point.h"
42+
#include "cpp/token_bucket_rate_limiter.h"
4343
#include "io/cache/block_file_cache.h"
4444
#include "io/cache/block_file_cache_factory.h"
4545
#include "io/cache/block_file_cache_profile.h"

be/src/runtime/exec_env.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ struct RuntimeFilterTimerQueue;
6161
} // namespace pipeline
6262
class WorkloadGroupMgr;
6363
struct WriteCooldownMetaExecutors;
64-
class S3RateLimiterHolder;
64+
class TokenBucketRateLimiterHolder;
65+
using S3RateLimiterHolder = TokenBucketRateLimiterHolder;
6566
namespace io {
6667
class FileCacheFactory;
6768
class HdfsMgr;

be/src/runtime/exec_env_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#include "common/kerberos/kerberos_ticket_mgr.h"
4747
#include "common/logging.h"
4848
#include "common/status.h"
49-
#include "cpp/s3_rate_limiter.h"
49+
#include "cpp/token_bucket_rate_limiter.h"
5050
#include "io/cache/block_file_cache_downloader.h"
5151
#include "io/cache/block_file_cache_factory.h"
5252
#include "io/cache/fs_file_cache_storage.h"

be/test/cloud/cloud_ms_rpc_rate_limiters_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ TEST_F(HostLevelMSRpcRateLimitersTest, DisplayNames) {
191191
EXPECT_EQ(meta_service_rpc_display_name(MetaServiceRPC::FINISH_RESTORE_JOB),
192192
"finish restore job");
193193
EXPECT_EQ(meta_service_rpc_display_name(MetaServiceRPC::LIST_SNAPSHOTS), "list snapshots");
194+
EXPECT_EQ(meta_service_rpc_display_name(MetaServiceRPC::GET_CLUSTER_STATUS),
195+
"get cluster status");
194196
EXPECT_EQ(meta_service_rpc_display_name(MetaServiceRPC::UPDATE_PACKED_FILE_INFO),
195197
"update packed file info");
196198
}

0 commit comments

Comments
 (0)