youngkermit8-coder opened a new pull request, #2377:
URL: https://github.com/apache/rocketmq-dashboard/pull/2377

   ## Summary
   
   - cap the aggregate raw body size retained by DLQ exports at 10 MiB before 
UTF-8/Base64 conversion
   - return HTTP 413 when the selected messages exceed that budget
   - preserve the existing 5,000-message cap, the resend path, and exports 
exactly at the byte boundary
   
   ## Root cause and impact
   
   The export path limited only the number of messages. It retained every raw 
body, converted each body to both UTF-8 and Base64, and then serialized the 
whole response, so a single export request could consume excessive heap even 
within the message-count cap.
   
   The scan now tracks selected raw body bytes and fails before retaining the 
message that would cross the limit. The resend scan keeps its prior behavior.
   
   ## Validation
   
   - regression test failed on the unmodified base because an over-budget 
export did not throw
   - `RocketMQDLQProviderTest`: 21 tests passed
   - related provider/service/controller suite: 45 tests passed
   - full Maven suite: 1,357 tests passed, 0 failures/errors/skips
   - Checkstyle: 0 violations
   - `git diff --check`: passed
   
   Fixes #2376
   


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