Priyesh K created HDDS-15452:
--------------------------------

             Summary: Refactor DataNodeMetricsServiceResponse to separate 
In-Progress and Completed API Payloads
                 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


*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]

Reply via email to