Arafat Khan created HDDS-14544:
----------------------------------

             Summary: OM DB Insights: Duplicate API calls triggered when 
changing limit selector
                 Key: HDDS-14544
                 URL: https://issues.apache.org/jira/browse/HDDS-14544
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone Recon
            Reporter: Arafat Khan


When changing the limit selector on the OM DB Insights page, duplicate API 
calls are being made for each endpoint, with the first call getting cancelled 
immediately.

*Steps to Reproduce:*
 # Navigate to OM DB Insights page
 # Open the limit dropdown
 # Select any limit value (e.g., 5000)
 # Observe network calls in browser DevTools

*Expected Behavior:*
 * One API call should be made for the active tab with the selected limit value

 * Example:
{code:java}
GET /api/v1/containers/mismatch?limit=5000&missingIn=OM {code}


*Actual Behavior:*
 * Two API calls are made for each endpoint

 * First call gets cancelled:  (canceled)
{code:java}
GET /api/v1/containers/mismatch?limit=1000{code}

 * Second call completes:  (200 OK)
{code:java}
GET /api/v1/containers/mismatch?limit=1000 {code}

 * This happens for all 5 tab endpoints even though only one tab is active

*Impact:*
 * Unnecessary network traffic and Performance degradation.



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