Yashgoswami-ds opened a new pull request, #4661: URL: https://github.com/apache/solr/pull/4661
# Description Fixes an issue where the v2 `/api/node/system` endpoint throws a `NullPointerException` when the `nodes` parameter is provided in SolrCloud mode. The issue occurs when `GetNodeSystemInfo` proxies requests to other nodes and tries to store the proxied responses in `NodeSystemResponse.remoteNodeData`. Since `remoteNodeData` was not initialized, adding node responses caused an NPE and returned an HTTP 500 error instead of the expected aggregated node information. # Solution Initialized `NodeSystemResponse.remoteNodeData` with a `LinkedHashMap` so that proxied node responses can be safely stored. Added a new SolrCloud test `GetNodeSystemInfoSolrCloudTest` that covers the failing scenario by requesting node system information with the `nodes` parameter and verifies that the response contains the expected node data. # Tests Ran: ```bash ./gradlew :solr:core:test --tests GetNodeSystemInfoSolrCloudTest -- 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]
