This is an automated email from the ASF dual-hosted git repository.
adoroszlai 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 2bccefb9447 HDDS-14044. Handle nullish values for Deletion Progress in
OM UI (#9625)
2bccefb9447 is described below
commit 2bccefb944792caf58d2d3ed69e9cabedf737baa
Author: Abhishek Pal <[email protected]>
AuthorDate: Wed Jan 21 15:14:00 2026 +0530
HDDS-14044. Handle nullish values for Deletion Progress in OM UI (#9625)
---
.../src/main/resources/webapps/ozoneManager/om-overview.html | 4 ++--
.../src/main/resources/webapps/ozoneManager/ozoneManager.js | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git
a/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
b/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
index c90ec67ce9d..703e473f35c 100644
---
a/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
+++
b/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
@@ -94,11 +94,11 @@ <h2>Meta-Data Volume Information</h2>
<!-- Only display Deletion Progress on OM leader -->
<div ng-show="$ctrl.role.Role.trim() === 'LEADER'">
- <h2>Deletion Progress [since {{$ctrl.overview.jmx.MetricsResetTimeStamp *
1000 | date:'yyyy-MM-dd HH:mm:ss'}}]
+ <h2>Deletion Progress [{{$ctrl.overview.jmx.MetricsResetTimeStamp ? 'since '
+ ($ctrl.overview.jmx.MetricsResetTimeStamp * 1000 | date:'yyyy-MM-dd
HH:mm:ss') : 'Initializing'}}]
•
<b>Size Reclaimed:</b>
{{$ctrl.formatBytes($ctrl.overview.jmx.ReclaimedSizeInInterval)}}
•
- <b>Keys Reclaimed:</b> {{$ctrl.overview.jmx.KeysReclaimedInInterval}}
+ <b>Keys Reclaimed:</b> {{$ctrl.overview.jmx.KeysReclaimedInInterval || 0}}
</h2>
<div class="mt-4">
<div class="mt-3">
diff --git
a/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js
b/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js
index 85746a0889f..8269b6df0fb 100644
---
a/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js
+++
b/hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/ozoneManager.js
@@ -119,6 +119,7 @@
ctrl.formatBytes = function(bytes, decimals) {
if(bytes == 0) return '0 Bytes';
+ if (!bytes) return 'N/A';
var k = 1024, // or 1024 for binary
dm = decimals + 1 || 3,
sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB',
'YB'],
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]