[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
Thu Jun 6 21:49:54 EDT 2013
[ https://issues.jboss.org/browse/JBTM-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779981#comment-12779981 ]
Amos Feng edited comment on JBTM-1762 at 6/6/13 9:49 PM:
---------------------------------------------------------
the success build return the following
{code}
2013-05-29 09:21:50,694 [0x57fd3f0] DEBUG (HttpClient :162 ) - receive 164 bytes
2013-05-29 09:21:50,696 [0x57fd3f0] DEBUG (HttpClient :165 ) - HTTP/1.1 412 Precondition Failed
Connection: keep-alive
Content-Length: 84
<html><head><title>Error</title></head><body>412 - Precondition Failed</body></html>
2013-05-29 09:21:50,698 [0x57fd3f0] DEBUG (HttpClient :194 ) - HTTP/1.1 412 Precondition Failed
2013-05-29 09:21:50,700 [0x57fd3f0] DEBUG (HttpClient :194 ) - Connection: keep-alive
2013-05-29 09:21:50,702 [0x57fd3f0] DEBUG (HttpClient :194 ) - Content-Length: 84
2013-05-29 09:21:50,704 [0x57fd3f0] DEBUG (HttpClient :220 ) - status_code:412
2013-05-29 09:21:50,706 [0x57fd3f0] DEBUG (HttpClient :222 ) - content: <html><head><title>Error</title></head><body>412 - Precondition Failed</body></html>
2013-05-29 09:21:50,708 [0x57fd3f0] DEBUG (TxHttpControl :299 ) - do_end: HTTP status: 412 resp: <html><head><title>Error</title></head><body>412 - Precondition Failed</body></html> nread: 84
2013-05-29 09:21:50,714 [0x57fd3f0] DEBUG (TxHttpControl :254 ) - http_to_tx_status ad><title>Error</title></head><body>412 - Precondition Failed</body></html> -> 0
2013-05-29 09:21:50,716 [0x57fd3f0] DEBUG (TxControl :66 ) - end: outcome: -2
{code}
was (Author: zhfeng):
the success build return the following
{code}
2013-05-29 09:21:50,694 [0x57fd3f0] DEBUG (HttpClient :162 ) - receive 164 bytes
2013-05-29 09:21:50,696 [0x57fd3f0] DEBUG (HttpClient :165 ) - HTTP/1.1 412 Precondition Failed
Connection: keep-alive
Content-Length: 84
<html><head><title>Error</title></head><body>412 - Precondition Failed</body></html>
{code}
> 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