[ 
https://issues.apache.org/jira/browse/HDFS-17840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

terrytlu updated HDFS-17840:
----------------------------
    Description: 
We found in our hadoop cluster, which has 26 nodes, while in NameNode UI, only 
show 3 nodes

!image-2025-09-23-11-34-26-420.png|width=720,height=253!

the problem still exists after merge 
https://issues.apache.org/jira/browse/HDFS-16402 ,this metric modification 
involves multiple data fields and heartbeat logic, it is difficult to guarantee 
atomicity.
 
And the metrics are calculated using real-time increments and decrements, once 
it is corrupted, it cannot be restored. We recommend change the implementation 
to retrieve the data from 
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager#datanodeMap to 
ensure a consistent number of nodes in service.

  was:
We found in our hadoop cluster, which has 26 nodes, while in NameNode UI, only 
show 3 nodes

!image-2025-09-23-11-34-26-420.png|width=720,height=253!

the problem still exists after merge 
https://issues.apache.org/jira/browse/HDFS-16402 ,this metric modification 
involves multiple data fields and heartbeat logic, it is difficult to guarantee 
atomicity.
 
 
Since the metrics here are calculated using real-time increments and 
decrements, once a metric is corrupted, it cannot be restored. We recommend 
modifying the implementation to retrieve the data from 
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager#datanodeMap to 
ensure a consistent number of nodes in service.


> The "Nodes in Service" information is incorrect under DFS Storage Types in 
> NameNode UI
> --------------------------------------------------------------------------------------
>
>                 Key: HDFS-17840
>                 URL: https://issues.apache.org/jira/browse/HDFS-17840
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: terrytlu
>            Priority: Major
>         Attachments: image-2025-09-23-11-34-26-420.png
>
>
> We found in our hadoop cluster, which has 26 nodes, while in NameNode UI, 
> only show 3 nodes
> !image-2025-09-23-11-34-26-420.png|width=720,height=253!
> the problem still exists after merge 
> https://issues.apache.org/jira/browse/HDFS-16402 ,this metric modification 
> involves multiple data fields and heartbeat logic, it is difficult to 
> guarantee atomicity.
>  
> And the metrics are calculated using real-time increments and decrements, 
> once it is corrupted, it cannot be restored. We recommend change the 
> implementation to retrieve the data from 
> org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager#datanodeMap to 
> ensure a consistent number of nodes in service.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to