You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ar...@apache.org on 2026/02/10 17:40:10 UTC

(ozone) branch master updated: HDDS-14532. Cluster Capacity refresh button should refresh all the data (#9740).

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 4ea7bb1aece HDDS-14532. Cluster Capacity refresh button should refresh all the data (#9740).
4ea7bb1aece is described below

commit 4ea7bb1aece49576e412ff8c6e057f8130e58558
Author: Abhishek Pal <pa...@gmail.com>
AuthorDate: Tue Feb 10 23:10:04 2026 +0530

    HDDS-14532. Cluster Capacity refresh button should refresh all the data (#9740).
---
 .../ozone-recon-web/src/v2/pages/capacity/capacity.tsx    | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/capacity/capacity.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/capacity/capacity.tsx
index ec9ad436e59..b8f895a24ff 100644
--- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/capacity/capacity.tsx
+++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/capacity/capacity.tsx
@@ -103,7 +103,10 @@ const Capacity: React.FC<object> = () => {
     }
   }, [selectedDatanode, storageDistribution.data.dataNodeUsage]);
 
-  const loadDNData = () => {
+  const loadData = () => {
+    storageDistribution.refetch();
+    scmPendingDeletes.refetch();
+    omPendingDeletes.refetch();
     dnPendingDeletes.refetch();
     setState({
       isDNPending: dnPendingDeletes.data.status !== "FINISHED",
@@ -111,6 +114,14 @@ const Capacity: React.FC<object> = () => {
     })
   }
 
+  const loadDNData = () => {
+    dnPendingDeletes.refetch();
+    setState({
+      isDNPending: dnPendingDeletes.data.status !== "FINISHED",
+      lastUpdated: Number(moment())
+    })
+  } 
+
   const autoReload = useAutoReload(loadDNData, PENDING_POLL_INTERVAL);
 
   const selectedDNDetails: DataNodeUsage & { pendingBlockSize: number } = React.useMemo(() => {
@@ -256,7 +267,7 @@ const Capacity: React.FC<object> = () => {
           isLoading={dnPendingDeletes.loading}
           lastRefreshed={state.lastUpdated}
           togglePolling={autoReload.handleAutoReloadToggle}
-          onReload={loadDNData} />
+          onReload={loadData} />
       </div>
       <div className='data-container'>
         <Typography.Title level={4} className='section-title'>Cluster</Typography.Title>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org