[jira] [Commented] (SOLR-6156) Exception while using group with timeAllowed on SolrCloud.

2015-04-22 Thread Forest Soup (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14506695#comment-14506695
 ] 

Forest Soup commented on SOLR-6156:
---

We have the same issue, when we issue a request like this(I only paste the xml 
format header here with some replacement):
lst name=responseHeader
int name=status500/int
int name=QTime11/int
lst name=params
str name=_route_Q049Y2RsMi1tYWlsMDcvTz1zY24y12345678!/str
str name=facettrue/str
str name=facet.mincount1/str
str name=facet.limit13/str
str name=facet.rangedate/str
str name=facet.range.endNOW/DAY+1DAY/str
str name=facet.range.gap+1DAY/str
str name=wtxml/str
str name=rows0/str
str name=dfbody/str
str name=start0/str
str name=q
((owner:12345678) AND (servername:mail07)) AND 
(((funid:38D46BF5E8F08834852564B50129B2C)) (softdeletion:0))
/str
str name=facet.range.startNOW/DAY-31DAY/str
str name=q.opAND/str
str name=timeAllowed6/str
str name=group.fieldtua0/str
str name=group.sortdate desc/str
str name=grouptrue/str
arr name=facet.field
strstrinetfrom/str
strfunid/str
/arr
/lst
/lst

If we remove the timeAllowed=6, there is no that issue.

We have all cores active according to /clusterstates.json and /live_nodes  in 
both Admin UI and in ZooKeeper.

We have the response:
{
  error: {
msg: org.apache.solr.client.solrj.SolrServerException: No live 
SolrServers available to handle this 
request:[https://hij2-solr1.fen.def2.cn.abc.com:8443/solr/collection1_shard2_replica2,
 https://hij2-solr2.fen.def2.cn.abc.com:8443/solr/collection1_shard2_replica1];,
trace: org.apache.solr.common.SolrException: 
org.apache.solr.client.solrj.SolrServerException: No live SolrServers available 
to handle this 
request:[https://hij2-solr1.fen.def2.cn.abc.com:8443/solr/collection1_shard2_replica2,
 
https://hij2-solr2.fen.def2.cn.abc.com:8443/solr/collection1_shard2_replica1]\n\tat
 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:308)\n\tat
 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)\n\tat
 org.apache.solr.core.SolrCore.execute(SolrCore.java:1916)\n\tat 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:780)\n\tat
 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)\n\tat
 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:217)\n\tat
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\n\tat
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\n\tat
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)\n\tat
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)\n\tat
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)\n\tat
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)\n\tat
 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)\n\tat 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\n\tat
 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)\n\tat
 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)\n\tat
 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)\n\tat
 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)\n\tat
 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)\n\tat
 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat
 java.lang.Thread.run(Thread.java:804)\nCaused by: 
org.apache.solr.client.solrj.SolrServerException: No live SolrServers available 
to handle this 
request:[https://hij2-solr1.fen.def2.cn.abc.com:8443/solr/collection1_shard2_replica2,
 
https://hij2-solr2.fen.def2.cn.abc.com:8443/solr/collection1_shard2_replica1]\n\tat
 
org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:387)\n\tat
 
org.apache.solr.handler.component.HttpShardHandlerFactory.makeLoadBalancedRequest(HttpShardHandlerFactory.java:205)\n\tat
 
org.apache.solr.handler.component.HttpShardHandler$1.call(HttpShardHandler.java:161)\n\tat
 
org.apache.solr.handler.component.HttpShardHandler$1.call(HttpShardHandler.java:118)\n\tat
 java.util.concurrent.FutureTask.run(FutureTask.java:273)\n\tat 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482)\n\tat 
java.util.concurrent.FutureTask.run(FutureTask.java:273)\n\tat 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)\n\tat
 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)\n\t...
 1 more\nCaused by: 

[jira] [Commented] (SOLR-6156) Exception while using group with timeAllowed on SolrCloud.

2014-07-16 Thread Modassar Ather (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14063390#comment-14063390
 ] 

Modassar Ather commented on SOLR-6156:
--

While debugging found that the create() method under SearchGroupsFieldCommand 
class return an empty list of collectors if topNGroups  0 and if 
includeGroupCount is false.
And if the collectors list is empty CommandHandler class invokes 
searchWithTimeLimiter(query, filter, null);. null is passed as collectors.

With the null collector passed an instance of TimeLimitingCollector is created 
in searchWithTimeLimiter(...) method of CommandHandler class if 
queryCommand.getTimeAllowed()  0.

Code snippet from CommandHandler. Here in the code below the collector passed 
to TimeLimitingCollector is null.
if (queryCommand.getTimeAllowed()  0 ) {
  collector = new TimeLimitingCollector(collector, 
TimeLimitingCollector.getGlobalCounter(), queryCommand.getTimeAllowed());
}

The NullPointerException occurrs when the TimeLimitingCollector instance 
created with null collector invokes setNextReader(...)

Not sure if topNGroups should be greater than 0 or includeGroupCount should be 
true when using timeAllowed or it is an issue. Kindly provide inputs.
Also let me know if the collectors list is null and timeAllowed0 which 
collector can be used to create the instance of TimeLimitingCollector.

Thanks,
Modassar

 Exception while using group with timeAllowed on SolrCloud.
 --

 Key: SOLR-6156
 URL: https://issues.apache.org/jira/browse/SOLR-6156
 Project: Solr
  Issue Type: Bug
Reporter: Modassar Ather

 Following exception is thrown when using grouping with timeAllowed. Solr 
 version used is 4.8.0.
 SEVERE: 
 null:org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: 
 java.lang.NullPointerException
 at 
 org.apache.lucene.search.TimeLimitingCollector.setNextReader(TimeLimitingCollector.java:158)
 at 
 org.apache.lucene.search.MultiCollector.setNextReader(MultiCollector.java:113)
 at 
 org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:612)
 at 
 org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:297)
 at 
 org.apache.solr.search.grouping.CommandHandler.searchWithTimeLimiter(CommandHandler.java:219)
 at 
 org.apache.solr.search.grouping.CommandHandler.execute(CommandHandler.java:156)
 at 
 org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:338)
 at 
 org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
 at 
 org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6156) Exception while using group with timeAllowed on SolrCloud.

2014-06-10 Thread Christine Poerschke (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14026280#comment-14026280
 ] 

Christine Poerschke commented on SOLR-6156:
---

Hi [~modassar] - i have come across something similar with a test solr 
instance, the crucial combination there was 
{noformat}group=truetimeAllowed=...rows=0{noformat} and non-zero rows values 
was fine. Does your request use rows=0 as well and/or could you share an 
example request that reproduces the exception?

 Exception while using group with timeAllowed on SolrCloud.
 --

 Key: SOLR-6156
 URL: https://issues.apache.org/jira/browse/SOLR-6156
 Project: Solr
  Issue Type: Bug
Reporter: Modassar Ather

 Following exception is thrown when using grouping with timeAllowed. Solr 
 version used is 4.8.0.
 SEVERE: 
 null:org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: 
 java.lang.NullPointerException
 at 
 org.apache.lucene.search.TimeLimitingCollector.setNextReader(TimeLimitingCollector.java:158)
 at 
 org.apache.lucene.search.MultiCollector.setNextReader(MultiCollector.java:113)
 at 
 org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:612)
 at 
 org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:297)
 at 
 org.apache.solr.search.grouping.CommandHandler.searchWithTimeLimiter(CommandHandler.java:219)
 at 
 org.apache.solr.search.grouping.CommandHandler.execute(CommandHandler.java:156)
 at 
 org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:338)
 at 
 org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
 at 
 org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6156) Exception while using group with timeAllowed on SolrCloud.

2014-06-10 Thread Modassar Ather (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14026297#comment-14026297
 ] 

Modassar Ather commented on SOLR-6156:
--

Hi [~cpoerschke]

With timeAllowed following query is used without rows parameter which caused 
exception as in description of this ticket.
group=truegroup.field=FIELD_NAME

 Exception while using group with timeAllowed on SolrCloud.
 --

 Key: SOLR-6156
 URL: https://issues.apache.org/jira/browse/SOLR-6156
 Project: Solr
  Issue Type: Bug
Reporter: Modassar Ather

 Following exception is thrown when using grouping with timeAllowed. Solr 
 version used is 4.8.0.
 SEVERE: 
 null:org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: 
 java.lang.NullPointerException
 at 
 org.apache.lucene.search.TimeLimitingCollector.setNextReader(TimeLimitingCollector.java:158)
 at 
 org.apache.lucene.search.MultiCollector.setNextReader(MultiCollector.java:113)
 at 
 org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:612)
 at 
 org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:297)
 at 
 org.apache.solr.search.grouping.CommandHandler.searchWithTimeLimiter(CommandHandler.java:219)
 at 
 org.apache.solr.search.grouping.CommandHandler.execute(CommandHandler.java:156)
 at 
 org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:338)
 at 
 org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
 at 
 org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
 at 
 org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org