This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new c577d2e3391 branch-3.0: [fix](cloud) Fix std::sleep_for in bthread
sync_rowset #53925 (#53953)
c577d2e3391 is described below
commit c577d2e33913692a5d345e13123c2aebad1af171
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Aug 1 16:33:42 2025 +0800
branch-3.0: [fix](cloud) Fix std::sleep_for in bthread sync_rowset #53925
(#53953)
Cherry-picked from #53925
Co-authored-by: Gavin Chou <[email protected]>
---
be/src/cloud/cloud_meta_mgr.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/cloud/cloud_meta_mgr.cpp b/be/src/cloud/cloud_meta_mgr.cpp
index 28174ebf1eb..2fa1ecf4a86 100644
--- a/be/src/cloud/cloud_meta_mgr.cpp
+++ b/be/src/cloud/cloud_meta_mgr.cpp
@@ -539,7 +539,7 @@ Status
CloudMetaMgr::sync_tablet_rowsets_unlocked(CloudTablet* tablet,
std::uniform_int_distribution<uint32_t> u(20, 200);
std::uniform_int_distribution<uint32_t> u1(500, 1000);
uint32_t duration_ms = tried >= 100 ? u(rng) : u1(rng);
- std::this_thread::sleep_for(milliseconds(duration_ms));
+ bthread_usleep(duration_ms * 1000);
LOG_INFO("failed to get rowset meta")
.tag("reason", cntl.ErrorText())
.tag("tablet_id", tablet_id)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]