You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by deniz <de...@gmail.com> on 2012/11/20 04:45:14 UTC

Weird Behaviour on Solr 5x (SolrCloud)

Hi all, 

after Mark Miller made it clear to me that 5x is supporting cloud with
ramdir, I have started playing with it and it seemed working smoothly,
except a weird behaviour.. here is the story of it:

Basically, I have pulled the code and built solr 5x, and the replace the war
file in webapps dir of my current installation... then i have started my
zookeeper servers..

after that i have started solr instances with the params below:

java -Djetty.port=7574 -DzkHost=zkserver2:2182 -jar start.jar (running on a
remote machine)
java -Dbootstrap_conf=true -DzkHost=zkserver1:2181 -jar start.jar (running
on local)

after both of them are up, i have indexed some docs, and both of the solr
instances were updated succesfully. after this point, i have killed one of
the solr (running on remote, not leader) and then restarted it again. there
was no errors in the log and everything seemed normal in the logs...

however, when i have checked the web interface for the one i have restarted
it showed 0 docs.. after that I ran q=*:* few times... 
and thats the point which surprises me... randomly it returned 0 results and
then it returned correct numbers.. each time i make the same query, i get an
empty result set randomly... I have no idea why this is happening


here is the logs 

for the one running on remote (which was restarted)

Nov 20, 2012 11:32:11 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={distrib=false&wt=javabin&rows=10&version=2&df=text&fl=id,score&shard.url=10.60.0.54:8983/solr/collection1/|remote:7574/solr/collection1/&NOW=1353382331589&start=0&q=*:*&isShard=true&fsv=true}
hits=0 status=0 QTime=0 
Nov 20, 2012 11:32:11 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={wt=xml&q=*:*} hits=0
status=0 QTime=7 
Nov 20, 2012 11:32:22 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={distrib=false&wt=javabin&rows=10&version=2&df=text&fl=id,score&shard.url=10.60.0.54:8983/solr/collection1/|remote:7574/solr/collection1/&NOW=1353382342238&start=0&q=*:*&isShard=true&fsv=true}
hits=0 status=0 QTime=0 
Nov 20, 2012 11:32:22 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={wt=xml&q=*:*} hits=0
status=0 QTime=7 
Nov 20, 2012 11:32:27 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={distrib=false&wt=javabin&rows=10&version=2&df=text&fl=id,score&shard.url=10.60.0.54:8983/solr/collection1/|remote:7574/solr/collection1/&NOW=1353382347438&start=0&q=*:*&isShard=true&fsv=true}
hits=0 status=0 QTime=0 
Nov 20, 2012 11:32:27 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={wt=xml&q=*:*} hits=0
status=0 QTime=14 
Nov 20, 2012 11:32:28 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={distrib=false&wt=javabin&rows=10&version=2&df=text&fl=id,score&shard.url=10.60.0.54:8983/solr/collection1/|remote:7574/solr/collection1/&NOW=1353382348255&start=0&q=*:*&isShard=true&fsv=true}
hits=0 status=0 QTime=1 
Nov 20, 2012 11:32:28 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={wt=xml&q=*:*} hits=0
status=0 QTime=7 
Nov 20, 2012 11:32:28 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select params={wt=xml&q=*:*} hits=32
status=0 QTime=14 


and for the same query, here is the log, from my local (leader, not
restarted)

Nov 20, 2012 11:31:46 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={distrib=false&wt=javabin&rows=10&version=2&df=text&fl=id,score&shard.url=localhost:8983/solr/collection1/|remoteserver:7574/solr/collection1/&NOW=1353382306472&start=0&q=*:*&isShard=true&fsv=true}
hits=32 status=0 QTime=0 
Nov 20, 2012 11:31:46 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={df=text&shard.url=localhost:8983/solr/collection1/|remoteserver:7574/solr/collection1/&NOW=1353382306472&q=*:*&ids=SP2514N,GB18030TEST,apple,F8V7067-APL-KIT,adata,6H500F0,MA147LL/A,ati,IW-02,asus&distrib=false&isShard=true&wt=javabin&rows=10&version=2}
status=0 QTime=1 
Nov 20, 2012 11:32:00 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={distrib=false&wt=javabin&rows=10&version=2&df=text&fl=id,score&shard.url=localhost:8983/solr/collection1/|remoteserver:7574/solr/collection1/&NOW=1353382320738&start=0&q=*:*&isShard=true&fsv=true}
hits=32 status=0 QTime=0 
Nov 20, 2012 11:32:00 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={df=text&shard.url=localhost:8983/solr/collection1/|remoteserver:7574/solr/collection1/&NOW=1353382320738&q=*:*&ids=SP2514N,GB18030TEST,apple,F8V7067-APL-KIT,adata,6H500F0,MA147LL/A,ati,IW-02,asus&distrib=false&isShard=true&wt=javabin&rows=10&version=2}
status=0 QTime=1 
Nov 20, 2012 11:32:28 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={distrib=false&wt=javabin&rows=10&version=2&df=text&fl=id,score&shard.url=localhost:8983/solr/collection1/|remoteserver:7574/solr/collection1/&NOW=1353382348822&start=0&q=*:*&isShard=true&fsv=true}
hits=32 status=0 QTime=0 
Nov 20, 2012 11:32:28 AM org.apache.solr.core.SolrCore execute
INFO: [collection1] webapp=/solr path=/select
params={df=text&shard.url=localhost:8983/solr/collection1/|remoteserver:7574/solr/collection1/&NOW=1353382348822&q=*:*&ids=SP2514N,GB18030TEST,apple,F8V7067-APL-KIT,adata,6H500F0,MA147LL/A,ati,IW-02,asus&distrib=false&isShard=true&wt=javabin&rows=10&version=2}
status=0 QTime=1 


any ideas? 





-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/Weird-Behaviour-on-Solr-5x-SolrCloud-tp4021219.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Weird Behaviour on Solr 5x (SolrCloud)

Posted by deniz <de...@gmail.com>.
Mark Miller-3 wrote
> I'm not sure - I guess I'll have to look into it - could you file a
> JIRA issue with these details?

sure... 
but before that could it be because of using RAM dir? because basically when
you restart solr the ram is gone and it tries to checks the old folder that
it had used... and as it cant find anything in the ram it shows an empty
index... could it be the reason? though still this not explains why after
restart it was not filled with the data from cloud...





-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/Weird-Behaviour-on-Solr-5x-SolrCloud-tp4021219p4021776.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Weird Behaviour on Solr 5x (SolrCloud)

Posted by Mark Miller <ma...@gmail.com>.
I'm not sure - I guess I'll have to look into it - could you file a
JIRA issue with these details?

- Mark

On Wed, Nov 21, 2012 at 1:19 AM, deniz <de...@gmail.com> wrote:
> well... i find a way to avoid this... i dont know if it is the correct way or
> i am simply bypassing the problem instead of fixing it..
>
> when i delete the data/ folders contents before restarting, it can get the
> index information from cloud without any problem...
>
> so it is the way how solrcloud works? or i am missing something important
> here?
>
>
>
> -----
> Zeki ama calismiyor... Calissa yapar...
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Weird-Behaviour-on-Solr-5x-SolrCloud-tp4021219p4021507.html
> Sent from the Solr - User mailing list archive at Nabble.com.



-- 
- Mark

Re: Weird Behaviour on Solr 5x (SolrCloud)

Posted by deniz <de...@gmail.com>.
well... i find a way to avoid this... i dont know if it is the correct way or
i am simply bypassing the problem instead of fixing it..

when i delete the data/ folders contents before restarting, it can get the
index information from cloud without any problem...

so it is the way how solrcloud works? or i am missing something important
here?



-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/Weird-Behaviour-on-Solr-5x-SolrCloud-tp4021219p4021507.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Weird Behaviour on Solr 5x (SolrCloud)

Posted by deniz <de...@gmail.com>.
is this because of zookeeper's load balancer or something like that? because
the results are returning totally randomly... 



-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/Weird-Behaviour-on-Solr-5x-SolrCloud-tp4021219p4021500.html
Sent from the Solr - User mailing list archive at Nabble.com.