This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f5adb679e7f [chore](cloud) Add thread name for snapshot data migrator
and compactor (#57627)
f5adb679e7f is described below
commit f5adb679e7fd92c65cedb8ec7625ff0da85c01c7
Author: walter <[email protected]>
AuthorDate: Tue Nov 4 09:30:13 2025 +0800
[chore](cloud) Add thread name for snapshot data migrator and compactor
(#57627)
---
cloud/src/recycler/snapshot_chain_compactor.cpp | 1 +
cloud/src/recycler/snapshot_data_migrator.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/cloud/src/recycler/snapshot_chain_compactor.cpp
b/cloud/src/recycler/snapshot_chain_compactor.cpp
index f702f8326a8..2809445b3c5 100644
--- a/cloud/src/recycler/snapshot_chain_compactor.cpp
+++ b/cloud/src/recycler/snapshot_chain_compactor.cpp
@@ -68,6 +68,7 @@ void SnapshotChainCompactor::stop() {
}
void SnapshotChainCompactor::compaction_loop() {
+ pthread_setname_np(pthread_self(), "SNAP_COMPACTOR");
while (!stopped()) {
// fetch instance to check
InstanceInfoPB instance;
diff --git a/cloud/src/recycler/snapshot_data_migrator.cpp
b/cloud/src/recycler/snapshot_data_migrator.cpp
index 48300cdc946..39b028237f0 100644
--- a/cloud/src/recycler/snapshot_data_migrator.cpp
+++ b/cloud/src/recycler/snapshot_data_migrator.cpp
@@ -69,6 +69,7 @@ void SnapshotDataMigrator::stop() {
}
void SnapshotDataMigrator::migration_loop() {
+ pthread_setname_np(pthread_self(), "SNAP_MIGRATOR");
while (!stopped()) {
// fetch instance to check
InstanceInfoPB instance;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]