sravani-revuri commented on code in PR #12169:
URL: https://github.com/apache/ozone/pull/12169#discussion_r4786172693
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/handlers/OBSBucketHandler.java:
##########
@@ -133,7 +133,7 @@ public long handleDirectKeys(long parentId, boolean
withReplica,
if (keyInfo != null) {
DUResponse.DiskUsage diskUsage = new DUResponse.DiskUsage();
String objectName = keyInfo.getKeyName();
- diskUsage.setSubpath(objectName);
+ diskUsage.setSubpath(buildSubpath(normalizedPath, objectName));
Review Comment:
On testing this i believe a few responses were different with the filtering.
reverted this and now handling the path from UI.
1)
```
path: /vol1/obs/a/file.txt
command: ozone admin namespace du /vol1/obs -f -p /vol1/obs/a
before: no match
after: 13 bytes /vol1/obs/a/file.txt
```
2)
```
Path: /vol1/obs/a/file.txt (listed as a/file.txt before)
Command: ozone admin namespace du /vol1/obs -f -p a
Before: 13 bytes a/file.txt
After: no match
```
3)
```
Command: ozone admin namespace du /vol1/obs -f
Before (key name only in the Path Name column): 13 bytes a/file.txt
After (buildSubpath / full path in the column): 13 bytes /vol1/obs/a/file.txt
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]