Fix `Can't split endpoint id into 2 parts` bug for endpoint ID in the mesh's TCP case. (#8327)
This commit is contained in:
parent
e74adec05f
commit
8a322e8559
|
|
@ -7,8 +7,8 @@ Release Notes.
|
|||
|
||||
#### Project
|
||||
|
||||
* Upgrade log4j2 to 2.17.0 for CVE-2021-44228, CVE-2021-45046 and CVE-2021-45105. This CVE only effects on JDK if JNDI is opened in
|
||||
default. Notice, using JVM option `-Dlog4j2.formatMsgNoLookups=true` or setting
|
||||
* Upgrade log4j2 to 2.17.0 for CVE-2021-44228, CVE-2021-45046 and CVE-2021-45105. This CVE only effects on JDK if JNDI
|
||||
is opened in default. Notice, using JVM option `-Dlog4j2.formatMsgNoLookups=true` or setting
|
||||
the `LOG4J_FORMAT_MSG_NO_LOOKUPS=”true”` environment variable also avoids CVEs.
|
||||
* Upgrade maven-wrapper to 3.1.0, maven to 3.8.4 for performance improvements and ARM more native support.
|
||||
|
||||
|
|
@ -18,6 +18,8 @@ Release Notes.
|
|||
* Bump up Armeria version to fix CVE.
|
||||
* Polish ETCD cluster config environment variables.
|
||||
* Add the analysis of metrics in Satellite MetricsService.
|
||||
* Fix `Can't split endpoint id into 2 parts` bug for endpoint ID. In the TCP in service mesh observability, endpoint
|
||||
name doesn't exist in TCP traffic.
|
||||
|
||||
#### UI
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ package org.apache.skywalking.aop.server.receiver.mesh;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.skywalking.apm.network.servicemesh.v3.Protocol;
|
||||
import org.apache.skywalking.apm.network.servicemesh.v3.ServiceMeshMetric;
|
||||
import org.apache.skywalking.oap.server.library.util.StringUtil;
|
||||
import org.apache.skywalking.oap.server.core.Const;
|
||||
import org.apache.skywalking.oap.server.core.CoreModule;
|
||||
import org.apache.skywalking.oap.server.core.analysis.NodeType;
|
||||
|
|
@ -37,6 +36,7 @@ import org.apache.skywalking.oap.server.core.source.ServiceInstanceRelation;
|
|||
import org.apache.skywalking.oap.server.core.source.ServiceRelation;
|
||||
import org.apache.skywalking.oap.server.core.source.SourceReceiver;
|
||||
import org.apache.skywalking.oap.server.library.module.ModuleManager;
|
||||
import org.apache.skywalking.oap.server.library.util.StringUtil;
|
||||
import org.apache.skywalking.oap.server.telemetry.TelemetryModule;
|
||||
import org.apache.skywalking.oap.server.telemetry.api.CounterMetrics;
|
||||
import org.apache.skywalking.oap.server.telemetry.api.HistogramMetrics;
|
||||
|
|
@ -226,6 +226,9 @@ public class TelemetryDataDispatcher {
|
|||
}
|
||||
|
||||
private static void toEndpoint(ServiceMeshMetric.Builder metrics, long minuteTimeBucket) {
|
||||
if (StringUtil.isEmpty(metrics.getEndpoint())) {
|
||||
return;
|
||||
}
|
||||
Endpoint endpoint = new Endpoint();
|
||||
endpoint.setTimeBucket(minuteTimeBucket);
|
||||
endpoint.setName(metrics.getEndpoint());
|
||||
|
|
|
|||
Loading…
Reference in New Issue