RockteMQ-AI commented on issue #2601:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/2601#issuecomment-5414600513

   **Issue Evaluation**
   
   Category:  | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase.
   
   **Root Cause:**  (line 59) delegates to , which unconditionally calls  (line 
50) on every invocation. Since pagination triggers a new  call per page, each 
page writes an identical row to the  history table.
   
   **Code path:**
   
   
   **Impact:** Server-side query history is inflated by pagination. For a 
result set with N pages, N identical history rows are created instead of 1.
   
   **Severity:** Medium — functional correctness is not affected, but history 
data integrity and summary counts are wrong.
   
   **Suggested fix direction:** Extract the provider query logic from  into a 
private helper that does not record history, then have  call the helper 
directly and only record history on the first page (or skip recording entirely 
for paginated calls).
   
   An automated fix proposal can be generated. Reply  to proceed with PR 
generation.
   
   ---
   *Automated evaluation by github-manager*


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

Reply via email to