Loyal-Young opened a new pull request, #7245:
URL: https://github.com/apache/rocketmq-dashboard/pull/7245

   ## Summary
   
   - Calculate queue-lag skew and summary maximums without spreading entire 
inventories into `Math.min`/`Math.max` calls.
   - Add a 150,000-row regression that failed with `RangeError` before the 
change and checks the resulting queue count, total lag, maximum lag, and skew 
issue.
   
   Fixes #7242.
   
   ## Verification
   
   - Before the fix: the new regression failed at `lagSkewRatio` with `Maximum 
call stack size exceeded`.
   - `npm test -- --run src/utils/consumerGroupDiagnostics.test.ts`: 5 passed 
after the fix.
   - TypeScript, changed-file ESLint and Prettier, and `git diff --check` 
passed.
   
   ## AI assistance
   
   I used AI assistance to trace the large-inventory failure and draft the 
regression. I reproduced the error on the original code, reviewed the iteration 
change, and ran the focused checks locally.
   


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