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

zhangstar333 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 8aa71734f04 [fix](profile) Fix duplicated execution profile (#37166)
8aa71734f04 is described below

commit 8aa71734f04098d22bc42ad83c09a49c30fab991
Author: zhiqiang <[email protected]>
AuthorDate: Fri Jul 5 10:35:04 2024 +0800

    [fix](profile) Fix duplicated execution profile (#37166)
    
    When there are multiple pipelines, execution profile will have
    duplicated pipelines. This is because of wrong pipeline profile naming
    rules.
    
    Root reason is this pr https://github.com/apache/doris/pull/35073 did
    not report fragment level profile through new profile reporting channel,
    makes profile naming on FE in chaos
---
 .../src/main/java/org/apache/doris/common/profile/ExecutionProfile.java | 2 --
 1 file changed, 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/common/profile/ExecutionProfile.java
 
b/fe/fe-core/src/main/java/org/apache/doris/common/profile/ExecutionProfile.java
index ebe41c1146f..7e61fd04ad7 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/common/profile/ExecutionProfile.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/common/profile/ExecutionProfile.java
@@ -232,7 +232,6 @@ public class ExecutionProfile {
 
                 profileNode.update(pipelineProfile.profile);
                 profileNode.setIsDone(isDone);
-                pipelineIdx++;
                 fragmentProfiles.get(fragmentId).addChild(profileNode);
             }
             multiBeProfile.get(fragmentId).put(backendHBAddress, taskProfile);
@@ -280,7 +279,6 @@ public class ExecutionProfile {
             if (params.done) {
                 profile.setIsDone(true);
             }
-            pipelineIdx++;
             profile.sortChildren();
             fragmentProfiles.get(params.fragment_id).addChild(profile);
         }


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

Reply via email to