[
https://issues.apache.org/jira/browse/LUCENE-2822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001967#comment-13001967
]
Michael McCandless commented on LUCENE-2822:
--------------------------------------------
I think we should stick with our private timer thread (and we should definitely
make it stop-able).
I've seen too many problems associated with relying on the system's time for
"important" things like timing out queries, eg when daylight savings time
strikes, or the clock is being "aggressively corrected", and suddenly a bunch
of queries are truncated. In theory System.nanoTime should be immune to this
(it's the system's timer and not any notion of "wall clock time"), but in
practice, I don't think we should risk it.
> TimeLimitingCollector starts thread in static {} with no way to stop them
> -------------------------------------------------------------------------
>
> Key: LUCENE-2822
> URL: https://issues.apache.org/jira/browse/LUCENE-2822
> Project: Lucene - Java
> Issue Type: Bug
> Reporter: Robert Muir
>
> See the comment in LuceneTestCase.
> If you even do Class.forName("TimeLimitingCollector") it starts up a thread
> in a static method, and there isn't a way to kill it.
> This is broken.
--
This message is automatically generated by JIRA.
-
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]