Skip to content

SOLR-15732 : queries to missing collection are slow#2597

Open
noblepaul wants to merge 3 commits intobranch_8xfrom
jira/solr15732
Open

SOLR-15732 : queries to missing collection are slow#2597
noblepaul wants to merge 3 commits intobranch_8xfrom
jira/solr15732

Conversation

@noblepaul
Copy link
Contributor

No description provided.

cores.getZkController().getZkStateReader().aliasesManager.update();
if(!cores.getZkController().getZkStateReader().aliasesManager.update()) {
//no change. go back
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the line below, forceUpdateCollection?

zkClient.getSolrZooKeeper().sync(ALIASES, null, null);
Stat stat = new Stat();
Stat stat = zkClient.exists(ALIASES, null, true);
if (stat.getVersion() <= aliases.getZNodeVersion()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. So you've found that it's faster to request only the "Stat" without the data so long as this is the typical path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants