[ 
https://issues.apache.org/jira/browse/DERBY-4856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lily Wei updated DERBY-4856:
----------------------------

    Attachment: DERBY-4856_part_3_1a.diff

Thanks to Kathey. I am attach DERBY-4856_part_3_1a.diff patch.
The changes in this patch:
1. Allow use enter property derby.stream.error.extendedDiagSeverityLevel. The 
default value is 40000
2. If the error(StandardException, SQLException) has error severity level >= 
derby.stream.error.extendedDiagSeverityLevel, thread dump information and 
extend diagnosis information will be handle by Derby.
3. Change SimpleTest to have derby.stream.error.extendedDiagSeverityLevel=45000

I am running Suites and derbyall tests now.

Question: If the database is not booted and error occurs, thread dump 
information and extend diagnosis information will still be handle with proper 
extenedDiagSeverityLevel . Should the code be some where else than 
ContextManager.cleanupOnError()? Any suggestion is welcome. Thanks.

> Add thread dump information when derby crash
> --------------------------------------------
>
>                 Key: DERBY-4856
>                 URL: https://issues.apache.org/jira/browse/DERBY-4856
>             Project: Derby
>          Issue Type: Bug
>          Components: Services
>            Reporter: Lily Wei
>            Assignee: Lily Wei
>            Priority: Minor
>             Fix For: 10.8.0.0
>
>         Attachments: ContextManager.java, corruptdb.zip, derby-4856-1a.diff, 
> DERBY-4856-part_1_1a.diff, DERBY-4856_part_2_2a.diff, 
> DERBY-4856_part_2_2b.diff, DERBY-4856_part_3_1a.diff, derby.log
>
>
> On system crash or session ending error, Derby should dump as much 
> information as possible. Such as: forcing a javacore if possible or at least 
> thread dump and system environment information. This should only occur if a 
> running session crashes not on boot error due to fail recovery etc.
> The IBM jvm provides a way to programmatically dump a javacore. i.e. 
> com.ibm.jvm.Dump.JavaDump() And, the SUN jvm will force a thread dump using 
> the Unsafe class and there may be a better way. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to