This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new beacc07f920 branch-4.1: [fix](bvar) Fix bvar leak after schema change 
job in be failed #56207 (#66946)
beacc07f920 is described below

commit beacc07f920ec66d150ba0d6256eb35a1fb2b9a4
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Aug 20 09:06:30 2026 +0800

    branch-4.1: [fix](bvar) Fix bvar leak after schema change job in be failed 
#56207 (#66946)
    
    Cherry-picked from #56207
    
    Co-authored-by: xy720 <[email protected]>
---
 be/src/agent/task_worker_pool.cpp | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/be/src/agent/task_worker_pool.cpp 
b/be/src/agent/task_worker_pool.cpp
index d8f794a7109..2605112673c 100644
--- a/be/src/agent/task_worker_pool.cpp
+++ b/be/src/agent/task_worker_pool.cpp
@@ -499,11 +499,14 @@ void add_task_count(const TAgentTaskRequest& task, int n) 
{
     {
         ALTER_count << n;
         // cloud auto stop need sc jobs, a tablet's sc can also be considered 
a fragment
-        doris::g_fragment_executing_count << 1;
-        int64_t now = duration_cast<std::chrono::milliseconds>(
-                            
std::chrono::system_clock::now().time_since_epoch())
-                            .count();
-        g_fragment_last_active_time.set_value(now);
+        if (n > 0) {
+            // only count fragment when task is actually starting
+            doris::g_fragment_executing_count << 1;
+            int64_t now = duration_cast<std::chrono::milliseconds>(
+                                
std::chrono::system_clock::now().time_since_epoch())
+                                .count();
+            g_fragment_last_active_time.set_value(now);
+        }
         return;
     }
     default:


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

Reply via email to