Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ Improvements
---------------------
* SOLR-17860: DocBasedVersionConstraintsProcessorFactory now supports PULL replicas. (Houston Putman)

* SOLR-17893: Speed up Remote Proxy for high QPS, utilizing ClusterState caching. (Houston Putman)

Optimizations
---------------------
(No changes)
Expand Down
4 changes: 2 additions & 2 deletions solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ protected DocCollection resolveDocCollection(String collectionName) {
}
ZkStateReader zkStateReader = cores.getZkController().getZkStateReader();
Supplier<DocCollection> logic =
() -> zkStateReader.getClusterState().getCollectionOrNull(collectionName);
() -> zkStateReader.getClusterState().getCollectionOrNull(collectionName, true);

DocCollection docCollection = logic.get();
if (docCollection != null) {
Expand Down Expand Up @@ -930,7 +930,7 @@ private SolrCore checkProps(ZkNodeProps zkProps) {

protected String getRemoteCoreUrl(String collectionName) throws SolrException {
ClusterState clusterState = cores.getZkController().getClusterState();
final DocCollection docCollection = clusterState.getCollectionOrNull(collectionName);
final DocCollection docCollection = clusterState.getCollectionOrNull(collectionName, true);
if (docCollection == null) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ public synchronized DocCollection get(boolean allowCached) {
Stat freshStats = null;
try {
freshStats = zkClient.exists(DocCollection.getCollectionPath(collName), null, true);
lastUpdateTime = System.nanoTime();
} catch (Exception e) {
}
if (freshStats != null
Expand Down