andyhuangdev opened a new pull request, #12019: URL: https://github.com/apache/ozone/pull/12019
## What changes were proposed in this pull request? The Recon heatmap API omits color when a key's read ratio truncates to 0.0, because the field uses @JsonInclude(NON_DEFAULT). Clients cannot distinguish the coldest keys from missing color values. This patch changes color to a nullable Double with NON_NULL, preserving explicitly assigned zero colors on leaves while continuing to omit unset colors on group nodes. The existing UI fallback remains for compatibility with older API responses. ## What is the link to the Apache JIRA [HDDS-17789](https://issues.apache.org/jira/browse/HDDS-17789) ## How was this patch tested? A JSON serialization regression test using keys with 5000 and 1 reads failed before the fix and passed afterward. It verifies that the cold key includes color: 0.0, the hot key retains color: 1.0, and group nodes omit color. - All 4 tests in TestHeatMapInfo passed. - ./hadoop-ozone/dev-support/checks/checkstyle.sh passed. - git diff --check passed. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
