Skip to content

Conversation

@priyeshkaratha
Copy link
Contributor

What changes were proposed in this pull request?

DatanodeStorageReport has recently been updated to include several additional fields. Some of these fields, such as hostName and datanodeUuid, are specific to individual datanodes and are not applicable to the clusterState storage report.
To address this, in this PR I have separated the models:

  • DatanodeStorageReport is now used specifically for datanode-level reporting.
  • A new ClusterStorageReport class has been introduced for the cluster state storage report, containing only the relevant cluster-level fields.
    Additionally, the Recon OpenAPI specification was not fully aligned with the recent changes. This PR also includes updates to the OpenAPI spec to ensure it is consistent with the current API models.

Also added few clean up in ClusterStateEndpoint

What is the link to the Apache JIRA

HDDS-14621

How was this patch tested?

Tested using unit testing.

@priyeshkaratha priyeshkaratha marked this pull request as ready for review February 12, 2026 06:59
@devmadhuu devmadhuu self-requested a review February 12, 2026 12:47
Copy link
Contributor

@devmadhuu devmadhuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @priyeshkaratha for the patch. Few nits. Largely looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants