[ 
https://issues.apache.org/jira/browse/SOLR-4194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13532749#comment-13532749
 ] 

Shawn Heisey commented on SOLR-4194:
------------------------------------

Solr log generated by log4j corresponding to the jetty log.  I have realized 
that I should not have shards.tolerant=true for this, so I have since removed 
it from the /lbcheck handler.


{noformat}
INFO  - 2012-12-14 15:16:01.547; org.apache.solr.core.SolrCore; [s5live] 
webapp=/solr path=/lbcheck 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=0&version=2&qt.path=/lbcheck&fl=tag_id,score&df=catchall&shard.url=bigindy5.REDACTED.com:8982/solr/s5live&NOW=1355523361544&start=0&q=*:*&shards.info=true&isShard=true&qt=/lbcheck&fsv=true}
 hits=13111698 status=0 QTime=0
INFO  - 2012-12-14 15:16:01.547; org.apache.solr.core.SolrCore; [s4live] 
webapp=/solr path=/lbcheck 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=0&version=2&qt.path=/lbcheck&fl=tag_id,score&df=catchall&shard.url=bigindy5.REDACTED.com:8982/solr/s4live&NOW=1355523361544&start=0&q=*:*&shards.info=true&isShard=true&qt=/lbcheck&fsv=true}
 hits=13103219 status=0 QTime=0
INFO  - 2012-12-14 15:16:01.548; org.apache.solr.core.SolrCore; [s2live] 
webapp=/solr path=/lbcheck 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=0&version=2&qt.path=/lbcheck&fl=tag_id,score&df=catchall&shard.url=bigindy5.REDACTED.com:8982/solr/s2live&NOW=1355523361544&start=0&q=*:*&shards.info=true&isShard=true&qt=/lbcheck&fsv=true}
 hits=13102554 status=0 QTime=0
INFO  - 2012-12-14 15:16:01.549; org.apache.solr.core.SolrCore; [s0live] 
webapp=/solr path=/lbcheck 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=0&version=2&qt.path=/lbcheck&fl=tag_id,score&df=catchall&shard.url=bigindy5.REDACTED.com:8982/solr/s0live&NOW=1355523361544&start=0&q=*:*&shards.info=true&isShard=true&qt=/lbcheck&fsv=true}
 hits=13105096 status=0 QTime=1
INFO  - 2012-12-14 15:16:01.549; org.apache.solr.core.SolrCore; [s1live] 
webapp=/solr path=/lbcheck 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=0&version=2&qt.path=/lbcheck&fl=tag_id,score&df=catchall&shard.url=bigindy5.REDACTED.com:8982/solr/s1live&NOW=1355523361544&start=0&q=*:*&shards.info=true&isShard=true&qt=/lbcheck&fsv=true}
 hits=13103459 status=0 QTime=0
INFO  - 2012-12-14 15:16:01.549; org.apache.solr.core.SolrCore; [inclive] 
webapp=/solr path=/lbcheck 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=0&version=2&qt.path=/lbcheck&fl=tag_id,score&df=catchall&shard.url=bigindy5.REDACTED.com:8982/solr/inclive&NOW=1355523361544&start=0&q=*:*&shards.info=true&isShard=true&qt=/lbcheck&fsv=true}
 hits=333902 status=0 QTime=0
INFO  - 2012-12-14 15:16:01.552; org.apache.solr.core.SolrCore; [s3live] 
webapp=/solr path=/lbcheck 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=0&version=2&qt.path=/lbcheck&df=catchall&fl=tag_id,score&shard.url=bigindy5.REDACTED.com:8982/solr/s3live&NOW=1355523361544&start=0&q=*:*&shards.info=true&isShard=true&qt=/lbcheck&fsv=true}
 hits=13101377 status=0 QTime=0
INFO  - 2012-12-14 15:16:01.553; org.apache.solr.core.SolrCore; [ncmain] 
webapp=/solr path=/lbcheck 
params={qt.path=/lbcheck&wt=javabin&q=*:*&rows=0&version=2} hits=78961305 
status=0 QTime=9
INFO  - 2012-12-14 15:16:01.557; org.apache.solr.core.SolrCore; [s2live] 
webapp=/solr path=/admin/ping 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=1&version=2&qt.path=/admin/ping&fl=tag_id,score&df=catchall&shard.url=bigindy5.REDACTED.com:8982/solr/s2live&NOW=1355523361555&start=0&q=*:*&shards.info=true&qt=/lbcheck&isShard=true&fsv=true}
 status=503 QTime=0
INFO  - 2012-12-14 15:16:01.557; org.apache.solr.core.SolrCore; [inclive] 
webapp=/solr path=/admin/ping 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=1&version=2&qt.path=/admin/ping&df=catchall&fl=tag_id,score&shard.url=bigindy5.REDACTED.com:8982/solr/inclive&NOW=1355523361555&start=0&q=*:*&shards.info=true&qt=/lbcheck&isShard=true&fsv=true}
 status=503 QTime=0
INFO  - 2012-12-14 15:16:01.558; org.apache.solr.core.SolrCore; [s0live] 
webapp=/solr path=/admin/ping 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=1&version=2&qt.path=/admin/ping&df=catchall&fl=tag_id,score&shard.url=bigindy5.REDACTED.com:8982/solr/s0live&NOW=1355523361555&start=0&q=*:*&shards.info=true&qt=/lbcheck&isShard=true&fsv=true}
 status=503 QTime=0
INFO  - 2012-12-14 15:16:01.558; org.apache.solr.core.SolrCore; [s3live] 
webapp=/solr path=/admin/ping 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=1&version=2&qt.path=/admin/ping&df=catchall&fl=tag_id,score&shard.url=bigindy5.REDACTED.com:8982/solr/s3live&NOW=1355523361555&start=0&q=*:*&shards.info=true&qt=/lbcheck&isShard=true&fsv=true}
 status=503 QTime=0
INFO  - 2012-12-14 15:16:01.558; org.apache.solr.core.SolrCore; [s4live] 
webapp=/solr path=/admin/ping 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=1&version=2&qt.path=/admin/ping&df=catchall&fl=tag_id,score&shard.url=bigindy5.REDACTED.com:8982/solr/s4live&NOW=1355523361555&start=0&q=*:*&shards.info=true&qt=/lbcheck&isShard=true&fsv=true}
 status=503 QTime=0
INFO  - 2012-12-14 15:16:01.559; org.apache.solr.core.SolrCore; [s5live] 
webapp=/solr path=/admin/ping 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=1&version=2&qt.path=/admin/ping&df=catchall&fl=tag_id,score&shard.url=bigindy5.REDACTED.com:8982/solr/s5live&NOW=1355523361555&start=0&q=*:*&shards.info=true&qt=/lbcheck&isShard=true&fsv=true}
 status=503 QTime=0
INFO  - 2012-12-14 15:16:01.559; org.apache.solr.core.SolrCore; [s1live] 
webapp=/solr path=/admin/ping 
params={shards.qt=/lbcheck&distrib=false&wt=javabin&shards.tolerant=true&rows=1&version=2&qt.path=/admin/ping&df=catchall&fl=tag_id,score&shard.url=bigindy5.REDACTED.com:8982/solr/s1live&NOW=1355523361555&start=0&q=*:*&shards.info=true&qt=/lbcheck&isShard=true&fsv=true}
 status=503 QTime=0
INFO  - 2012-12-14 15:16:01.561; org.apache.solr.core.SolrCore; [ncmain] 
webapp=/solr path=/admin/ping params={qt.path=/admin/ping&wt=javabin&version=2} 
hits=0 status=0 QTime=6
INFO  - 2012-12-14 15:16:01.561; org.apache.solr.core.SolrCore; [ncmain] 
webapp=/solr path=/admin/ping params={qt.path=/admin/ping&wt=javabin&version=2} 
status=0 QTime=6
{noformat}

                
> PingRequestHandler - shards parameter inherited from search handler definition
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-4194
>                 URL: https://issues.apache.org/jira/browse/SOLR-4194
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.1
>         Environment: solr-impl    4.1-SNAPSHOT 1421496 - ncindex - 2012-12-13 
> 14:56:25
>            Reporter: Shawn Heisey
>             Fix For: 4.1, 5.0
>
>
> Included in all my cores is a PingRequestHandler named /admin/ping, which I 
> use to enable/disable the server from the perspective of a load balancer 
> running haproxy.  The handler includes a qt parameter set to /lbcheck.
> I have a special core defined (I call it a broker) that includes the shards 
> parameter in most of its search handler definitions.  This includes /select, 
> /lbcheck, and others.
> When the /admin/ping handler is called, the query is sent to the /lbcheck 
> parameter as expected, which gets distributed because it includes shards.  If 
> one of those shards happens to be down, the handler will give an error 
> response to the load balancer.
> The problem is that the PingRequestHandler seems to inherit the shards 
> parameter from the search handler it is using, which causes the /admin/ping 
> request itself to be distributed, which is not what I want.  The individual 
> shards are not used by the load balancer, so they always remain disabled.
> This works perfectly in 3.5.0.  The official 4.0.0 release has not been 
> tested.
> Config and log data will follow in the comments.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to