diff --git a/CHANGES.md b/CHANGES.md index 24072cbcc..c4a354c03 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -39,6 +39,7 @@ Release Notes. * Fix CVE in the uninstrumented gateways configs, when activating the dynamic configuration feature. * Fix CVE in the Apdex threshold configs, when activating the dynamic configuration feature. * Make the codes and doc consistent in sharding server and core server. +* Fix that chunked string is incorrect while the tag contains colon #### UI * Fix incorrect label in radial chart in topology. diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/function/avg/AvgHistogramPercentileFunction.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/function/avg/AvgHistogramPercentileFunction.java index 3f3e2b254..3d06d8603 100644 --- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/function/avg/AvgHistogramPercentileFunction.java +++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/function/avg/AvgHistogramPercentileFunction.java @@ -194,8 +194,8 @@ public abstract class AvgHistogramPercentileFunction extends Metrics implements dataset.keys().stream() .map(key -> { if (key.contains(":")) { - String[] kk = key.split(":"); - return Tuple.of(kk[0], key); + int index = key.lastIndexOf(":"); + return Tuple.of(key.substring(0, index), key.substring(index + 1)); } else { return Tuple.of(DEFAULT_GROUP, key); }