[refactor](schema_hash) remove schema_hash since every tablet id in be is unique (#8574)

This commit is contained in:
caiconghui
2022-04-07 08:37:45 +08:00
committed by GitHub
parent 57638ae43d
commit 98cab78320
30 changed files with 102 additions and 158 deletions

View File

@ -58,13 +58,13 @@ public class ReplicasProcNode implements ProcNodeInterface {
Backend be = backendMap.get(replica.getBackendId());
String host = (be == null ? Backend.DUMMY_IP : be.getHost());
int port = (be == null ? 0 : be.getHttpPort());
String metaUrl = String.format("http://%s:%d/api/meta/header/%d/%d",
String metaUrl = String.format("http://%s:%d/api/meta/header/%d",
host, port,
tabletId,
replica.getSchemaHash());
String compactionUrl = String.format(
"http://%s:%d/api/compaction/show?tablet_id=%d&schema_hash=%d",
"http://%s:%d/api/compaction/show?tablet_id=%d",
host, port,
tabletId,
replica.getSchemaHash());

View File

@ -120,14 +120,14 @@ public class TabletsProcDir implements ProcDirInterface {
tabletInfo.add(tablet.getCheckedVersion());
tabletInfo.add(replica.getVersionCount());
tabletInfo.add(replica.getPathHash());
String metaUrl = String.format("http://%s:%d/api/meta/header/%d/%d",
String metaUrl = String.format("http://%s:%d/api/meta/header/%d",
backendMap.get(replica.getBackendId()).getHost(),
backendMap.get(replica.getBackendId()).getHttpPort(),
tabletId,
replica.getSchemaHash());
tabletInfo.add(metaUrl);
String compactionUrl = String.format(
"http://%s:%d/api/compaction/show?tablet_id=%d&schema_hash=%d",
"http://%s:%d/api/compaction/show?tablet_id=%d",
backendMap.get(replica.getBackendId()).getHost(),
backendMap.get(replica.getBackendId()).getHttpPort(),
tabletId,