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 1b785c4480f branch-3.0: [improve](cloud-mow) Optimize log output when 
missing delete bitmap cache #44446 (#44559)
1b785c4480f is described below

commit 1b785c4480fd92b393cfbb461a7e069ac1f6b982
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 26 19:12:55 2024 +0800

    branch-3.0: [improve](cloud-mow) Optimize log output when missing delete 
bitmap cache #44446 (#44559)
    
    Cherry-picked from #44446
    
    Co-authored-by: huanghaibin <[email protected]>
---
 be/src/cloud/cloud_meta_mgr.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/be/src/cloud/cloud_meta_mgr.cpp b/be/src/cloud/cloud_meta_mgr.cpp
index b2de0df99c2..466f7b4ad11 100644
--- a/be/src/cloud/cloud_meta_mgr.cpp
+++ b/be/src/cloud/cloud_meta_mgr.cpp
@@ -606,8 +606,9 @@ bool 
CloudMetaMgr::sync_tablet_delete_bitmap_by_cache(CloudTablet* tablet, int64
             
engine.txn_delete_bitmap_cache().remove_unused_tablet_txn_info(txn_id,
                                                                            
tablet->tablet_id());
         } else {
-            LOG(WARNING) << "failed to get tablet txn info. tablet_id=" << 
tablet->tablet_id()
-                         << ", txn_id=" << txn_id << ", status=" << status;
+            LOG_EVERY_N(INFO, 20)
+                    << "delete bitmap not found in cache, will sync rowset to 
get. tablet_id= "
+                    << tablet->tablet_id() << ", txn_id=" << txn_id << ", 
status=" << status;
             return false;
         }
     }
@@ -625,8 +626,6 @@ Status CloudMetaMgr::sync_tablet_delete_bitmap(CloudTablet* 
tablet, int64_t old_
     if (sync_tablet_delete_bitmap_by_cache(tablet, old_max_version, rs_metas, 
delete_bitmap)) {
         return Status::OK();
     } else {
-        LOG(WARNING) << "failed to sync delete bitmap by txn info. tablet_id="
-                     << tablet->tablet_id();
         DeleteBitmapPtr new_delete_bitmap = 
std::make_shared<DeleteBitmap>(tablet->tablet_id());
         *delete_bitmap = *new_delete_bitmap;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to