[refactor](schema_hash) remove schema_hash since every tablet id in be is unique (#8574)
This commit is contained in:
@ -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());
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user