This is an automated email from the ASF dual-hosted git repository. dsmiley pushed a commit to branch branch_9x in repository https://gitbox.apache.org/repos/asf/solr.git
commit c4b3e5e7f25f797a26a799d9f8bd93e0fd5956d0 Author: gbellaton <[email protected]> AuthorDate: Thu Nov 30 16:30:47 2023 +0100 SOLR-17084: SolrJ: shorten error message; don't serialize all "zombies" (#2097) LBSolrClient (used by CloudSolrClient) now returns the count of core tracked as not live AKA zombies instead of the full list of cores. This list is potentially VERY long which was causing high CPU and memory usage. --- solr/CHANGES.txt | 3 ++- .../src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index ebe12786e84..20ae71a470b 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -44,7 +44,8 @@ Improvements Optimizations --------------------- -(No changes) +* SOLR-17084: LBSolrClient (used by CloudSolrClient) now returns the count of core tracked as not live AKA zombies + instead of the full list of cores. This list is potentially VERY long which was causing high CPU and memory usage. Bug Fixes --------------------- diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java index 3de37dbb712..0bed04f10cd 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBSolrClient.java @@ -358,7 +358,10 @@ public abstract class LBSolrClient extends SolrClient { } } throw new SolrServerException( - "No live SolrServers available to handle this request:" + zombieServers.keySet(), ex); + "No live SolrServers available to handle this request. (Tracking " + + zombieServers.size() + + " not live)", + ex); } /**
