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

Anurag Sharma commented on SOLR-6547:
-------------------------------------

Hi Hoss,

Thanks for your update. 

Time is usually returned as long value. Since getQTime returns, int looks like 
the interest is to return value in seconds and not milliseconds. 

I agree with your suggestion to change the return type to either long or use 
intValue while returning in the current method.

Is there a way I can reproduce the java.lang.ClassCastException mentioned in 
the description?
Kevin - Any suggestion?

Anurag

> CloudSolrServer query getqtime Exception
> ----------------------------------------
>
>                 Key: SOLR-6547
>                 URL: https://issues.apache.org/jira/browse/SOLR-6547
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: 4.10
>            Reporter: kevin
>
> We are using CloudSolrServer to query ,but solrj throw Exception ;
> java.lang.ClassCastException: java.lang.Long cannot be cast to 
> java.lang.Integer      at 
> org.apache.solr.client.solrj.response.SolrResponseBase.getQTime(SolrResponseBase.java:76)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to