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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 9a619e341a6 branch-4.0: [fix](profile) Disable profile collection by 
default #57314 (#57549)
9a619e341a6 is described below

commit 9a619e341a60681423c445bfff7775fa54c4d5db
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Nov 3 12:21:44 2025 +0800

    branch-4.0: [fix](profile) Disable profile collection by default #57314 
(#57549)
    
    Cherry-picked from #57314
    
    Co-authored-by: zhiqiang <[email protected]>
---
 be/src/vec/exec/scan/scanner.cpp                                  | 2 +-
 fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/exec/scan/scanner.cpp b/be/src/vec/exec/scan/scanner.cpp
index dc7133927b1..77b9a54cb7a 100644
--- a/be/src/vec/exec/scan/scanner.cpp
+++ b/be/src/vec/exec/scan/scanner.cpp
@@ -244,7 +244,7 @@ Status Scanner::close(RuntimeState* state) {
 void Scanner::_collect_profile_before_close() {
     COUNTER_UPDATE(_local_state->_scan_cpu_timer, _scan_cpu_timer);
     COUNTER_UPDATE(_local_state->_rows_read_counter, _num_rows_read);
-    if (!_state->enable_profile() && !_is_load) return;
+
     // Update stats for load
     _state->update_num_rows_load_filtered(_counter.num_rows_filtered);
     _state->update_num_rows_load_unselected(_counter.num_rows_unselected);
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
index 102c44df43c..efa9360eb99 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -1018,7 +1018,7 @@ public class SessionVariable implements Serializable, 
Writable {
 
     // if true, need report to coordinator when plan fragment execute 
successfully.
     @VariableMgr.VarAttr(name = ENABLE_PROFILE, needForward = true)
-    public boolean enableProfile = true;
+    public boolean enableProfile = false;
 
     @VariableMgr.VarAttr(name = RPC_VERBOSE_PROFILE_MAX_INSTANCE_COUNT, 
needForward = true)
     public int rpcVerboseProfileMaxInstanceCount = 5;


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

Reply via email to