[
https://issues.apache.org/jira/browse/DERBY-6320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13803523#comment-13803523
]
ASF subversion and git services commented on DERBY-6320:
--------------------------------------------------------
Commit 1535206 from [email protected] in branch 'code/branches/10.10'
[ https://svn.apache.org/r1535206 ]
DERBY-6320 Log a page dump to derby.log if ERROR nospc: nospc.U is returned to
the user
backported change #1535075 from trunk to 10.10 branch, muliple manual changes
were necessary for the backport.
The backport of this change from trunk to 10.10 did not go cleanly at all due
to usage of new java language features in messages in trunk. Here is the patch
for 10.10 which I assume will backport cleanly to previous releases.
The 2 problems were a new 15 param message and that trunk did not require
Objects in newException() anymore. Also had to hand resolve a merge issue in
StoredPage.java
This patch adds the ability to dump a page in an insane build, and adds 2 calls
to do so in 2 outstanding nospc error cases. In those two cases a new user
level error is thrown and nests the nospc.U error so that we still know the
original stack trace where the lowest error was thrown.
The patch passes all tests and the specific errors were hand tested, one of
them using the test case filed in DERBY-4923 and in the other case just by hand
forcing the codepath.
> Log a page dump to derby.log if ERROR nospc: nospc.U is returned to the user
> -----------------------------------------------------------------------------
>
> Key: DERBY-6320
> URL: https://issues.apache.org/jira/browse/DERBY-6320
> Project: Derby
> Issue Type: Improvement
> Components: Store
> Affects Versions: 10.8.2.2
> Reporter: Kathey Marsden
> Assignee: Mike Matrigali
> Attachments: DERBY-4923_1010.diff, DERBY-6320.diff
>
>
> ERROR nospc: nospc.U should only be an internal error that is caught and
> handled. If returned to the user, it is likely a bug. It would be useful if
> this occurs to have a page dump printed to derby.log. Care should be taken
> to only do this if the error is returned to the user and not for the internal
> variety.
--
This message was sent by Atlassian JIRA
(v6.1#6144)