-
Notifications
You must be signed in to change notification settings - Fork 28
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
"SolrServerException: No solr server available." in version 1.3.x #7
Comments
👍 |
Strange: I'd say that this is caused by the warmup queries (see also commit f97c402) - but as it seems you don't set warmupQueries on the CloudSolrServers. Can you please double check that you're not setting warmupQueries? |
Confirmed: |
Just looking into this, and I cannot reproduce this (in our application) with the setup code you posted. Looking further into this... |
Btw, does it matter how much time is spent after the creation of the AsyncSolrClient instance before you call |
Assuming you have set the log level for "io.ino.solrs" to INFO, (when) do you see the log message "Connected to zookeeper at ", and how does it change if you additionally call |
It doesn't metter how long I wait after creation of Without yhe additional call I have the following log:
When adding the additional call
As you can see, the |
Ok, it appears in my code that the Maybe it could be convenient in |
Thanx for the log extracts! Can you also set the log level for org.apache.solr.common.cloud to INFO, please? It would also be helpful to have timestamps there as well. Re updateFromClusterState: this is scheduled with initialDelay=0 (https://github.com/inoio/solrs/blob/master/src/main/scala/io/ino/solrs/SolrServers.scala#L139), so it should be invoked right away - only the thread creation time is added. We could also add debug log statements to updateFromClusterState to debug this. |
I agree that initialDelay=0 but for some reason it is not executed as soon as it is scheduled |
I added log level INFO for
|
with akka scheduled jobs are executed asynchronously and execution time is not strongly guaranteed. so 0 delay means an interval 0 > T < (1/maxFrequency) |
here is the reference (yellow box: |
In
so that the first execution is guaranteed to be synchronus, and then the other are scheduled to be executed starting after the desired interval |
Scheduler thread creation might take too long as indicated by issue #7
I just changed it like this, its as version 1.3.2 on its way to maven central. Does this work for you? |
Yes, it works. Thanks. |
Great! |
tnx! |
Hello, I'm using SolrCLoud with Zookeeper and I'm initializing an AsyncSolrClient like this:
The first time I execute a call like this:
I get the following exception:
If I execute the same query again, everything works fine. Apparently the problem doesn't happen if just after the creation of the AsyncSolrClient I call this:
In version 1.2.0 and previous versions everything works fine.
Thanks
The text was updated successfully, but these errors were encountered: