[
https://issues.apache.org/jira/browse/HDDS-15452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Priyesh K updated HDDS-15452:
-----------------------------
Summary: Split DataNodeMetricsServiceResponse response into state-specific
DTOs (was: Refactor DataNodeMetricsServiceResponse to separate In-Progress and
Completed API Payloads)
> Split DataNodeMetricsServiceResponse response into state-specific DTOs
> ----------------------------------------------------------------------
>
> Key: HDDS-15452
> URL: https://issues.apache.org/jira/browse/HDDS-15452
> Project: Apache Ozone
> Issue Type: Improvement
> Components: Ozone Recon
> Reporter: Priyesh K
> Assignee: Priyesh K
> Priority: Major
>
> *Problem:* The {{/storageDistribution/download}} API exposes messy {{null}}
> metric arrays while background collection is still {{{}IN_PROGRESS{}}}.
> *Solution:* Split the response DTO into a clean inheritance hierarchy to
> decouple processing states:
> * *Base:* Core telemetry ({{{}status{}}}, node counts).
> * *Progress Subclass:* Drops metric arrays; adds a user-friendly
> {{{}message{}}}.
> * *Complete Subclass:* Appends metric data payloads only upon success.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]