This is an automated email from the ASF dual-hosted git repository.
arafat2198 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 96e1a8c446 HDDS-11140. Recon Disk Usage Metadata Details are not
working for du api (#6966)
96e1a8c446 is described below
commit 96e1a8c44654280f779c28fba2c7d4a519860c4c
Author: Smita <[email protected]>
AuthorDate: Thu Jul 25 17:43:10 2024 +0530
HDDS-11140. Recon Disk Usage Metadata Details are not working for du api
(#6966)
---
.../src/main/resources/webapps/recon/ozone-recon-web/api/db.json | 9 +++++++++
.../main/resources/webapps/recon/ozone-recon-web/api/routes.json | 1 +
.../recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx | 4 +---
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/db.json
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/db.json
index b28c510363..3362faf628 100644
---
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/db.json
+++
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/db.json
@@ -1857,6 +1857,15 @@
],
"sizeDirectKey": 0
},
+ "replica": {
+ "status": "OK",
+ "path": "/s3v/fso-bucket/dir1/key1-fso",
+ "size": 17289,
+ "sizeWithReplica": 17289,
+ "subPathCount": 0,
+ "subPaths": [],
+ "sizeDirectKey": -1
+ },
"taskStatus": [
{
"taskName": "ContainerKeyMapperTask",
diff --git
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/routes.json
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/routes.json
index b2136d074b..86d7a51a56 100644
---
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/routes.json
+++
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/routes.json
@@ -21,6 +21,7 @@
"/namespace/du?path=/dummyVolume/dummyBucket/key:id*": "/key",
"/namespace/du?path=/vol1/bucket1/empty&files=true&sortSubPaths=true":
"/empty",
"/namespace/du?path=/clunky&files=true&sortSubpaths=true": "/clunky",
+ "/namespace/du?path=/*&replica=true": "/replica",
"/namespace/summary?path=*": "/metadata",
"/namespace/quota?path=*": "/quota",
"/task/status": "/taskStatus",
diff --git
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx
index 091d8a146d..873d8a16d9 100644
---
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx
+++
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx
@@ -314,7 +314,7 @@ export class DiskUsage extends
React.Component<Record<string, object>, IDUState>
keys.push('Entity Type');
values.push(summaryResponse.type);
- if (summaryResponse.countStats.type === 'KEY') {
+ if (summaryResponse.type === 'KEY') {
const keyEndpoint = `/api/v1/namespace/du?path=${path}&replica=true`;
const { request: metadataRequest, controller: metadataNewController }
= AxiosGetHelper(keyEndpoint, cancelKeyMetadataSignal);
cancelKeyMetadataSignal = metadataNewController;
@@ -323,8 +323,6 @@ export class DiskUsage extends
React.Component<Record<string, object>, IDUState>
values.push(byteToSize(response.data.size, 3));
keys.push('File Size With Replication');
values.push(byteToSize(response.data.sizeWithReplica, 3));
- console.log(values);
-
this.setState({
showPanel: true,
panelKeys: keys,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]