From 692d510edbe25864db0162d257b94c016bcd6028 Mon Sep 17 00:00:00 2001 From: caiconghui <55968745+caiconghui@users.noreply.github.com> Date: Sat, 11 Mar 2023 21:34:47 +0800 Subject: [PATCH] [fix](schema_hash) remove useless schema_hash param in tablet and replica url (#17489) Co-authored-by: caiconghui1 --- .../org/apache/doris/common/proc/ReplicasProcNode.java | 10 ++-------- .../org/apache/doris/common/proc/TabletsProcDir.java | 8 ++------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/proc/ReplicasProcNode.java b/fe/fe-core/src/main/java/org/apache/doris/common/proc/ReplicasProcNode.java index ccdc775314..950033cf58 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/proc/ReplicasProcNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/proc/ReplicasProcNode.java @@ -78,14 +78,8 @@ public class ReplicasProcNode implements ProcNodeInterface { String host = (be == null ? Backend.DUMMY_IP : be.getIp()); int port = (be == null ? 0 : be.getHttpPort()); String hostPort = NetUtils.getHostPortInAccessibleFormat(host, port); - String metaUrl = String.format("http://" + hostPort + "/api/meta/header/%d", - tabletId, - replica.getSchemaHash()); - - String compactionUrl = String.format( - "http://" + hostPort + "/api/compaction/show?tablet_id=%d", - tabletId, - replica.getSchemaHash()); + String metaUrl = String.format("http://" + hostPort + "/api/meta/header/%d", tabletId); + String compactionUrl = String.format("http://" + hostPort + "/api/compaction/show?tablet_id=%d", tabletId); String cooldownMetaId = ""; if (replica.getCooldownMetaId() != null) { diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java b/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java index 0d1e322db3..8f183d715e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletsProcDir.java @@ -129,14 +129,10 @@ public class TabletsProcDir implements ProcDirInterface { String host = (be == null ? Backend.DUMMY_IP : be.getIp()); int port = (be == null ? 0 : be.getHttpPort()); String hostPort = NetUtils.getHostPortInAccessibleFormat(host, port); - String metaUrl = String.format("http://" + hostPort + "/api/meta/header/%d", - tabletId, - replica.getSchemaHash()); + String metaUrl = String.format("http://" + hostPort + "/api/meta/header/%d", tabletId); tabletInfo.add(metaUrl); String compactionUrl = String.format( - "http://" + hostPort + "/api/compaction/show?tablet_id=%d", - tabletId, - replica.getSchemaHash()); + "http://" + hostPort + "/api/compaction/show?tablet_id=%d", tabletId); tabletInfo.add(compactionUrl); tabletInfo.add(tablet.getCooldownConf().first); if (replica.getCooldownMetaId() == null) {