Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: branch_8x
Choose a base branch
from

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?

@@ -2269,7 +2269,12 @@ public boolean update() throws KeeperException, InterruptedException {
log.debug("Checking ZK for most up to date Aliases {}", ALIASES);
// Call sync() first to ensure the subsequent read (getData) is up to date.
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