Shalin Shekhar Mangar created SOLR-7419:
-------------------------------------------

             Summary: 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: 5.1, 4.10.4
            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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to