[
https://issues.apache.org/jira/browse/HDFS-8211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14508482#comment-14508482
]
Arpit Agarwal commented on HDFS-8211:
-------------------------------------
Hi [~anu], thank you for fixing this and adding the test case.
The fix looks good. The test case seems to pass without the code change. The
test could be simplified to just create a stub DN object with the
SimulatedFSDataset and invoke initStorage on it. See
{{SimulatedFSDataset#setFactory}}.
> DataNode UUID is always null in the JMX counter
> -----------------------------------------------
>
> Key: HDFS-8211
> URL: https://issues.apache.org/jira/browse/HDFS-8211
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: HDFS
> Affects Versions: 2.7.0
> Reporter: Anu Engineer
> Assignee: Anu Engineer
> Priority: Minor
> Attachments: hdfs-8211.001.patch
>
>
> The DataNode JMX counters are tagged with DataNode UUID, but it always gets a
> null value instead of the UUID.
> {code}
> Hadoop:service=DataNode,name=FSDatasetState*-null*.
> {code}
> This null is supposed be the datanode UUID.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)