lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7419) Initial value of thread local in SolrQueryTimeoutImpl overflows a long
Date Mon, 20 Apr 2015 13:21:59 GMT

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

Steve Rowe commented on SOLR-7419:
----------------------------------

bq. Can you please put a comment to that effect in the code and close this issue?

Will do.  Thanks for bringing it up.

> Initial value of thread local in SolrQueryTimeoutImpl overflows a long
> ----------------------------------------------------------------------
>
>                 Key: SOLR-7419
>                 URL: https://issues.apache.org/jira/browse/SOLR-7419
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.10.4, 5.1
>            Reporter: Shalin Shekhar Mangar
>            Priority: Trivial
>             Fix For: Trunk, 5.2
>
>
> Same as the title.
> {code}
>  /**
>    * The ThreadLocal variable to store the time beyond which, the processing should exit.
>    */
>   public static ThreadLocal<Long> timeoutAt = new ThreadLocal<Long>() {
>     @Override
>     protected Long initialValue() {
>       return nanoTime() + Long.MAX_VALUE;
>     }
>   };
> {code}



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

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


Mime
View raw message