devabhishekpal opened a new pull request, #7657:
URL: https://github.com/apache/ozone/pull/7657

   ## What changes were proposed in this pull request?
   HDDS-12016. Fixed duplicate entries when changing path in DU page
   
   Please describe your PR in detail:
   **Previously**:
   * The Disk Usage metadata details are not being set properly. We are using 
an array of keys and an array of values as the data for metadata table from 
which we generate the table data by mapping.
   * So if we change the path, specially while viewing the quota related 
details in the table i.e change table page and then change path - rows from 
second page will be repeated in the new path metadata causing it to be flaky.
   * We made separate calls to the summary and quota APIs and set the state 
twice. This causes issues with syncing up state as APIs might return in 
different times.
   
   **As a part of this PR**:
   *  We are going to use an array of objects to avoid recalculation of data we 
are already having, also we will make sure to remove duplicate entries when the 
path change triggers metadata table remount.
   * We are changing to simultaneously call both summary and quota APIs and set 
the state only once per path change.
   * Minor refactor of error checking method from overview page to common utils.
   
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-12016
   
   ## How was this patch tested?
   Patch was tested manually.
   
   
https://github.com/user-attachments/assets/b2b6ddcc-0293-41f1-9869-007f5d6be647
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to