You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Andy Jefferson (JIRA)" <ji...@apache.org> on 2006/11/13 21:37:37 UTC

[jira] Created: (JDO-442) Transaction.setRollbackOnly() : difference between api20 and spec

Transaction.setRollbackOnly() : difference between api20 and spec
-----------------------------------------------------------------

                 Key: JDO-442
                 URL: http://issues.apache.org/jira/browse/JDO-442
             Project: JDO
          Issue Type: Bug
          Components: api2, api2-legacy, specification
    Affects Versions: JDO 2 final
            Reporter: Andy Jefferson
             Fix For: JDO 2 maintenance release 1


in the JDO2-final spec 13.4.5
<spec>
Once a transaction has been marked for rollback via setRollbackOnly, the 
commit method will always fail with JDOFatalDataStoreException. The JDO 
implementation must not try to make any changes to the database during commit 
when the transaction has been marked for rollback.
</spec>

whereas in the javadocs for javax.jdo.Transaction "setRollbackOnly" we have
"Sets the rollback-only status of the transaction to <code>true</code>. After 
this flag is set to <code>true</code>, the transaction can no longer be 
committed, and any attempt to commit the transaction will throw 
<code>JDOUserException<code>."

So which exception should be thrown here ... JDOFatalDataStoreException or 
JDOUserException ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JDO-442) Transaction.setRollbackOnly() : difference between api20 and spec

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531191 ] 

Craig Russell commented on JDO-442:
-----------------------------------

The tck test AfterSetRollbackOnlyCommitFails.java checks for JDOFatalDataStoreException. 

The spec has already been updated...

> Transaction.setRollbackOnly() : difference between api20 and spec
> -----------------------------------------------------------------
>
>                 Key: JDO-442
>                 URL: https://issues.apache.org/jira/browse/JDO-442
>             Project: JDO
>          Issue Type: Bug
>          Components: api2, api2-legacy, specification
>    Affects Versions: JDO 2 final
>            Reporter: Andy Jefferson
>            Assignee: Craig Russell
>             Fix For: JDO 2 maintenance release 1
>
>
> in the JDO2-final spec 13.4.5
> <spec>
> Once a transaction has been marked for rollback via setRollbackOnly, the 
> commit method will always fail with JDOFatalDataStoreException. The JDO 
> implementation must not try to make any changes to the database during commit 
> when the transaction has been marked for rollback.
> </spec>
> whereas in the javadocs for javax.jdo.Transaction "setRollbackOnly" we have
> "Sets the rollback-only status of the transaction to <code>true</code>. After 
> this flag is set to <code>true</code>, the transaction can no longer be 
> committed, and any attempt to commit the transaction will throw 
> <code>JDOUserException<code>."
> So which exception should be thrown here ... JDOFatalDataStoreException or 
> JDOUserException ?

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


[jira] Assigned: (JDO-442) Transaction.setRollbackOnly() : difference between api20 and spec

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

Craig Russell reassigned JDO-442:
---------------------------------

    Assignee: Craig Russell

> Transaction.setRollbackOnly() : difference between api20 and spec
> -----------------------------------------------------------------
>
>                 Key: JDO-442
>                 URL: https://issues.apache.org/jira/browse/JDO-442
>             Project: JDO
>          Issue Type: Bug
>          Components: api2, api2-legacy, specification
>    Affects Versions: JDO 2 final
>            Reporter: Andy Jefferson
>         Assigned To: Craig Russell
>             Fix For: JDO 2 maintenance release 1
>
>
> in the JDO2-final spec 13.4.5
> <spec>
> Once a transaction has been marked for rollback via setRollbackOnly, the 
> commit method will always fail with JDOFatalDataStoreException. The JDO 
> implementation must not try to make any changes to the database during commit 
> when the transaction has been marked for rollback.
> </spec>
> whereas in the javadocs for javax.jdo.Transaction "setRollbackOnly" we have
> "Sets the rollback-only status of the transaction to <code>true</code>. After 
> this flag is set to <code>true</code>, the transaction can no longer be 
> committed, and any attempt to commit the transaction will throw 
> <code>JDOUserException<code>."
> So which exception should be thrown here ... JDOFatalDataStoreException or 
> JDOUserException ?

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


[jira] Resolved: (JDO-442) Transaction.setRollbackOnly() : difference between api20 and spec

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

Craig Russell resolved JDO-442.
-------------------------------

    Resolution: Fixed

> Transaction.setRollbackOnly() : difference between api20 and spec
> -----------------------------------------------------------------
>
>                 Key: JDO-442
>                 URL: https://issues.apache.org/jira/browse/JDO-442
>             Project: JDO
>          Issue Type: Bug
>          Components: api2, api2-legacy, specification
>    Affects Versions: JDO 2 final
>            Reporter: Andy Jefferson
>            Assignee: Craig Russell
>             Fix For: JDO 2 maintenance release 1
>
>
> in the JDO2-final spec 13.4.5
> <spec>
> Once a transaction has been marked for rollback via setRollbackOnly, the 
> commit method will always fail with JDOFatalDataStoreException. The JDO 
> implementation must not try to make any changes to the database during commit 
> when the transaction has been marked for rollback.
> </spec>
> whereas in the javadocs for javax.jdo.Transaction "setRollbackOnly" we have
> "Sets the rollback-only status of the transaction to <code>true</code>. After 
> this flag is set to <code>true</code>, the transaction can no longer be 
> committed, and any attempt to commit the transaction will throw 
> <code>JDOUserException<code>."
> So which exception should be thrown here ... JDOFatalDataStoreException or 
> JDOUserException ?

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