Issue Details (XML | Word | Printable)

Key: DERBY-1732
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Sunitha Kambhampati
Reporter: Daniel John Debrunner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

The language and store systems treat a JVM error such as OutOfMemoryError differently leading to the raw store protocol violation errors

Created: 19/Aug/06 06:55 PM   Updated: 14/Dec/06 01:31 AM
Return to search
Component/s: SQL, Store
Affects Version/s: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4
Fix Version/s: 10.2.2.0, 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works derby1732.diff.txt 2006-09-28 02:53 PM Sunitha Kambhampati 3 kB
Text File Licensed for inclusion in ASF works derby1732.stat.txt 2006-09-28 02:53 PM Sunitha Kambhampati 0.2 kB

Resolution Date: 14/Dec/06 01:31 AM


 Description  « Hide
Don't have the exact details, but remember noticing it a while ago. I think the store transaction context closes the transaction on such an error, while the language conneciton context just rollsback the transaction or the statement. I think the best and consistent approach would be to close the connection.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #453395 Thu Oct 05 21:40:18 UTC 2006 djd DERBY-1732 1. Make change to GenericStatementContext.isLastHandler() so it will return false for JVM errors thus
allowing the outer contexts to take corrective action.
2. Store transaction context treats JVM errors as session severity. To ensure consistency,
map severity for non StandardException instances to be SESSION_SEVERITY in GenericLanguageContext,
and GenericStatementContext.
Patch contributed by Sunitha Kambhampati ksunithaghm@gmail.com
Files Changed
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java

Repository Revision Date User Message
ASF #480074 Tue Nov 28 14:57:33 UTC 2006 rhillegas DERBY-1732: Port fix to 10.2 branch.
Files Changed
MODIFY /db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
MODIFY /db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java