[jbossts-issues] [JBoss JIRA] (JBTM-1762) TX TestTransactions::test_rollback failed with un-expect TX_FAIL

Amos Feng (JIRA) jira-events at lists.jboss.org
Fri Jun 7 21:58:54 EDT 2013


    [ https://issues.jboss.org/browse/JBTM-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780375#comment-12780375 ] 

Amos Feng commented on JBTM-1762:
---------------------------------

you mean the following codes in the tx/src/main/cpp/HttpControl.cxx
{code}
int HttpControl::do_end(int how)
{
    TX_GUARD("end", true);
    ...
    if (_endUrl == NULL && !headRequest())
        return TX_FAIL;
    ...
    if (_wc.send(_pool, &ri, "PUT", _endUrl, TX_STATUS_MEDIA_TYPE, NULL, p, strlen(p), &resp, &nread) != 0) {
        LOG4CXX_DEBUG(httpclogger, "do_end: HTTP PUT error");

        return TX_FAIL;
    }
    ...
{code}

It looks like performs an HTTP HEAD followed by an HTTP PUT only if _endUrl is NULL.
                
> TX TestTransactions::test_rollback failed with un-expect TX_FAIL
> ----------------------------------------------------------------
>
>                 Key: JBTM-1762
>                 URL: https://issues.jboss.org/browse/JBTM-1762
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: BlackTie
>            Reporter: Amos Feng
>            Assignee: Amos Feng
>             Fix For: 5.0.0.M4
>
>   Original Estimate: 2 days
>  Remaining Estimate: 2 days
>
> {noformat}
>  [exec] 1) test: TestTransactions::test_rollback (F) line: 288 /home/hudson/workspace/blacktie-linux32/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: -2
>      [exec] - Actual  : -7
> {noformat}
> It looks like the TM server returns code 412 and no content. so tx_commit() returns TX_FAIL but expects TX_ROLLBACK.
> {code}
> 2013-06-07 08:34:08,732 [0x57fd3f0] DEBUG (HttpClient               :162 ) - receive 79 bytes
> 2013-06-07 08:34:08,734 [0x57fd3f0] DEBUG (HttpClient               :165 ) - HTTP/1.1 412 Precondition Failed
> Connection: keep-alive
> Content-Length: 0
> 2013-06-07 08:34:08,736 [0x57fd3f0] DEBUG (HttpClient               :194 ) - HTTP/1.1 412 Precondition Failed
> 2013-06-07 08:34:08,738 [0x57fd3f0] DEBUG (HttpClient               :194 ) - Connection: keep-alive
> 2013-06-07 08:34:08,739 [0x57fd3f0] DEBUG (HttpClient               :194 ) - Content-Length: 0
> 2013-06-07 08:34:08,741 [0x57fd3f0] DEBUG (HttpClient               :220 ) - status_code:412
> 2013-06-07 08:34:08,743 [0x57fd3f0] DEBUG (TxHttpControl            :299 ) - do_end: HTTP status: 412 resp: 
> 2013-06-07 08:34:08,745 [0x57fd3f0] DEBUG (TxControl                :66  ) - end: outcome: -7
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossts-issues mailing list