[fix](schema_hash) remove useless schema_hash param in tablet and replica url (#17489)

Co-authored-by: caiconghui1 <caiconghui1@jd.com>
This commit is contained in:
caiconghui
2023-03-11 21:34:47 +08:00
committed by GitHub
parent d7cb5cf3db
commit 692d510edb
2 changed files with 4 additions and 14 deletions

View File

@ -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) {

View File

@ -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) {