yyqdbngt opened a new pull request, #3095: URL: https://github.com/apache/rocketmq-dashboard/pull/3095
### Summary Cap the persisted result snapshot in the query-history service: - `buildResultSnapshot` now limits the serialized record list to the first 500 messages (`MAX_SNAPSHOT_RECORDS`), so a very large query result can no longer produce a snapshot that risks exceeding the storage column or bloating history rows; the full result count is still carried by the record's `resultCount`. ### Why Query results (e.g. broad topic scans) can return far more messages than the history UI ever re-displays; snapshots previously serialized every record, letting a single history row grow without bound. ### Testing - `mvn -f server/pom.xml -Dtest=QueryHistoryServiceTest test` passes: 8/8 (6 existing + 2 new: 1200 records are capped to 500; null/empty and small lists behave unchanged). -- 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]
