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

Uwe Schindler commented on LUCENE-4488:
---------------------------------------

bq. If it's hotspot then a crash should be (it's tested and works for 
jni-caused crashes) reported by the runner as JVM crash (including anything 
dumped to stderr which hotspot typically does).

The TestIndexWriterOnJRECrash spawns a "private" JVM and passes if this one 
crashes :-)

bq. OK it's TestPackedInts.testIntOveflow: ant test -Dtestcase=TestPackedInts 
-Dtests.seed=28D1C0449657C3B6 -Dargs="-XX:+HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=/home/mike" creates the heap dump every time.

It seems that it catches OOM and ignores it, otherwise it would not pass.

Once this is fixed, I will modify the root "ant jenkins-hourly" target to work 
similar like the "run-clover" target: It uses <antcall/> to customize the 
parameters and add the heap dump settings to "args" parameter. It will also 
create a temporary build dir for the heap dumps and after running the tests, it 
validates that the folder is still empty, otherwise fail the build. So tests 
are detected that catch OOM and ignore.

I will provide a patch for the build file...
                
> Jenkins builds aren't saving heap dumps anymore
> -----------------------------------------------
>
>                 Key: LUCENE-4488
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4488
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>
> Spinoff from the discussion here: http://markmail.org/thread/vljiltccqgg7afxc
> Our Jenkins builds used to save heap dumps, which is really useful for 
> tracking down OOMEs that are hard to reproduce: sometimes these OOMEs are due 
> to real issues.
> From the thread it sounds like it's easy to fix TestIndexWriterOnJRECrash to 
> not dump ...

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

Reply via email to