lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4177) TestPerfTasksLogic.testBGSearchTaskThreads sometimes fails or hangs on Windows
Date Wed, 01 Aug 2012 21:24:04 GMT

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

Dawid Weiss commented on LUCENE-4177:
-------------------------------------

This looks like a stopNow flag is never read or seen by bgTasks because the test hangs here:
{code}
      for(RunBackgroundTask bgTask : bgTasks) {
        bgTask.stopNow();
      }
      for(RunBackgroundTask bgTask : bgTasks) {
        bgTask.join();           <----- here
        count += bgTask.getCount();
      }
{code}
I don't know why it's the case but it doesn't surprise me that it doesn't reproduce because
looking at the code a lot of things seem to be wall time dependent, as in TaskSequence:
{code}
final int slot = (int) ((System.currentTimeMillis()-t0)/logByTimeMsec);
{code}
and, what's probably worse, there are thread priority manipulations which may lead to starvations?
{code}
bgTask.setPriority(task.getBackgroundDeltaPriority() + Thread.currentThread().getPriority());
{code}


                
> TestPerfTasksLogic.testBGSearchTaskThreads sometimes fails or hangs on Windows
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-4177
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4177
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> e.g.
> http://jenkins.sd-datasolutions.de/job/Lucene-Solr-4.x-Windows-Java6-64/147/
> http://jenkins.sd-datasolutions.de/job/Lucene-Solr-trunk-Windows-Java7-64/408/
> this has happened a couple times... but always on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message