From 521b18a5042bbe50e266c3a35193b4842a848f00 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 6 Sep 2024 07:11:05 +0000 Subject: [PATCH] [BugFix] Fix non isomorphic profile during data load (backport #50692) (#50717) Co-authored-by: meegoo --- .../main/java/com/starrocks/common/util/RuntimeProfile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/com/starrocks/common/util/RuntimeProfile.java b/fe/fe-core/src/main/java/com/starrocks/common/util/RuntimeProfile.java index 7d86d056e8310..88ba37080c64b 100644 --- a/fe/fe-core/src/main/java/com/starrocks/common/util/RuntimeProfile.java +++ b/fe/fe-core/src/main/java/com/starrocks/common/util/RuntimeProfile.java @@ -655,8 +655,10 @@ public static RuntimeProfile mergeIsomorphicProfiles(List profil continue; } Pair pair = profile.counterMap.get(name); - Preconditions.checkNotNull(pair, "missing counter, profileName={}, counterName={}", profile.name, - name); + if (pair == null) { + LOG.warn("missing counter, profileName={}, counterName={}", profile.name, name); + continue; + } Counter counter = pair.first; String parentName = pair.second;