Skip to content

Commit

Permalink
SOLR-17084: SolrJ: shorten error message; don't serialize all "zombie…
Browse files Browse the repository at this point in the history
…s" (#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.
  • Loading branch information
gbellaton authored Nov 30, 2023
1 parent c1a3fd3 commit 0b95a6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,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
---------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ public Rsp request(Req req) throws SolrServerException, IOException {
}
}
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);
}

/**
Expand Down

0 comments on commit 0b95a6e

Please sign in to comment.