You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Rick Hillegas (JIRA)" <ji...@apache.org> on 2012/07/27 21:51:34 UTC

[jira] [Created] (DERBY-5887) Garbage printed for error LOG_UNDO_FAILED

Rick Hillegas created DERBY-5887:
------------------------------------

             Summary: Garbage printed for error LOG_UNDO_FAILED
                 Key: DERBY-5887
                 URL: https://issues.apache.org/jira/browse/DERBY-5887
             Project: Derby
          Issue Type: Bug
          Components: Store
    Affects Versions: 10.10.0.0
            Reporter: Rick Hillegas


SQLState.LOG_UNDO_FAILED maps to a message which has 3 arguments, the first of which is a transaction id. However, when this SQLState is raised by FileLogger, it is handed 4 arguments, the first of which is an exception. This will result in a confusing garbage message for the user.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5887) Garbage printed for error LOG_UNDO_FAILED

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434072#comment-13434072 ] 

Knut Anders Hatlen commented on DERBY-5887:
-------------------------------------------

I think the usages of SQLState.LOG_UNDO_FAILED in FileLogger are actually OK. They use this variant of newException():

	public static StandardException newException(String messageID, Throwable t, Object a1, Object a2, Object a3) {
		Object[] oa = new Object[] {a1, a2, a3};
		return new StandardException(messageID, t, oa);
	}

Note that this method ends up passing only three of the arguments to the message formatter. The exception argument will be linked to the returned StandardException.
                
> Garbage printed for error LOG_UNDO_FAILED
> -----------------------------------------
>
>                 Key: DERBY-5887
>                 URL: https://issues.apache.org/jira/browse/DERBY-5887
>             Project: Derby
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 10.10.0.0
>            Reporter: Rick Hillegas
>
> SQLState.LOG_UNDO_FAILED maps to a message which has 3 arguments, the first of which is a transaction id. However, when this SQLState is raised by FileLogger, it is handed 4 arguments, the first of which is an exception. This will result in a confusing garbage message for the user.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (DERBY-5887) Garbage printed for error LOG_UNDO_FAILED

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas closed DERBY-5887.
--------------------------------

    Resolution: Invalid

Thanks for that extra set of eyes, Knut. Closing this issue as invalid.
                
> Garbage printed for error LOG_UNDO_FAILED
> -----------------------------------------
>
>                 Key: DERBY-5887
>                 URL: https://issues.apache.org/jira/browse/DERBY-5887
>             Project: Derby
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 10.10.0.0
>            Reporter: Rick Hillegas
>
> SQLState.LOG_UNDO_FAILED maps to a message which has 3 arguments, the first of which is a transaction id. However, when this SQLState is raised by FileLogger, it is handed 4 arguments, the first of which is an exception. This will result in a confusing garbage message for the user.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira