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

Dawid Weiss commented on LUCENE-4901:
-------------------------------------

I think Runtime.halt is a very similar thing -- it (should) stop the threads 
immediately without any finalization blocks/ propagation of 
ThreadDeathException or otherwise. Any open file handles will be closed by the 
operating system on a "real" crash so I don't think this makes any difference. 

I do have native code that crashes J9 and JRockit too but this has side effects 
-- J9 dumps a *lot* of debugging state information, for example. Right now 
we're testing just a subset of JVMs, if the tradeoff is to increase the 
coverage on other JVMs I think it's worth it to use Runtime.halt().

                
> TestIndexWriterOnJRECrash should work on any JRE vendor via Runtime.halt()
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-4901
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4901
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: general/test
>         Environment: Red Hat EL 6.3
> IBM Java 1.6.0
> ANT 1.9.0
>            Reporter: Rodrigo Trujillo
>            Assignee: Dawid Weiss
>            Priority: Minor
>             Fix For: 5.0, 4.4
>
>         Attachments: LUCENE-4901.patch, test-IBM-java-vendor.patch
>
>
> I successfully compiled Lucene 4.2 with IBM.
> Then ran unit tests with the nightly option set to "true"
> The test case TestIndexWriterOnJRECrash was skipped returning "IBM 
> Corporation JRE not supported":
> [junit4:junit4] Suite: org.apache.lucene.index.TestIndexWriterOnJRECrash
> [junit4:junit4] IGNOR/A 0.28s | TestIndexWriterOnJRECrash.testNRTThreads
> [junit4:junit4]    > Assumption #1: IBM Corporation JRE not supported.
> [junit4:junit4] Completed in 0.68s, 1 test, 1 skipped

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to