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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]