[jbossts-issues] [JBoss JIRA] (JBTM-1920) Blacktie TestTransactions test failed: REST-AT stricter?

Michael Musgrove (JIRA) jira-events at lists.jboss.org
Sun Sep 15 21:44:03 EDT 2013


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

Michael Musgrove edited comment on JBTM-1920 at 9/15/13 9:43 PM:
-----------------------------------------------------------------

I've reduce the priority since I have committed a work around - blacktie passes the enlistment urls in the http request body (instead of the Link header).
Someone needs to run the RTS quickstarts against the latest wildfly asap.

Note that the problem is somewhere between undertow and the resteasy interceptors since I tried manually enlisting using the Link header via the command line (cURL) and got the same problem (namely the JAX-RS @HeaderParam("Link") annotation is coming through as a null value):

{code}
[hudson at tenafly blacktie]$ curl -d "timeout=10" -X POST http://localhost:8080/rest-tx/tx/transaction-manager # this line creates a new transaction
[hudson at tenafly blacktie]$ curl http://localhost:8080/rest-tx/tx/transaction-manager # get the resource url for the new transaction
http://localhost:8080/rest-tx/tx/transaction-manager/0_ffffac118314_-2cc33a11_523636ae_342
# now enlist a participant using a Link header
[hudson at tenafly blacktie]$ curl -X POST --header "Link: <http://127.0.0.1:8888/xid/131077%3a100%3a0%3a1%3a1379280076%3a834173/terminate>;rel="terminator",<http://127.0.0.1:8888/xid/131077%3a100%3a0%3a1%3a1379280076%3a834173/status>;rel="participant"" http://localhost:8080/rest-tx/tx/transaction-manager/0_ffffac118314_-2cc33a11_523636ae_342
Missing Enlistment Link Header[hudson at tenafly blacktie]$

{code}
                
      was (Author: mmusgrov):
    I've reduce the priority since I have committed a work around - blacktie passes the enlistment urls in the http request body (instead of the Link header).

Note that the problem is somewhere between undertow and the resteasy interceptors since I tried manually enlisting using the Link header via the command line (cURL) and got the same problem (namely the JAX-RS @HeaderParam("Link") annotation is coming through as a null value):

{code}
[hudson at tenafly blacktie]$ curl -d "timeout=10" -X POST http://localhost:8080/rest-tx/tx/transaction-manager # this line creates a new transaction
[hudson at tenafly blacktie]$ curl http://localhost:8080/rest-tx/tx/transaction-manager # get the resource url for the new transaction
http://localhost:8080/rest-tx/tx/transaction-manager/0_ffffac118314_-2cc33a11_523636ae_342
# now enlist a participant using a Link header
[hudson at tenafly blacktie]$ curl -X POST --header "Link: <http://127.0.0.1:8888/xid/131077%3a100%3a0%3a1%3a1379280076%3a834173/terminate>;rel="terminator",<http://127.0.0.1:8888/xid/131077%3a100%3a0%3a1%3a1379280076%3a834173/status>;rel="participant"" http://localhost:8080/rest-tx/tx/transaction-manager/0_ffffac118314_-2cc33a11_523636ae_342
Missing Enlistment Link Header[hudson at tenafly blacktie]$

{code}
                  
> Blacktie TestTransactions test failed: REST-AT stricter?
> --------------------------------------------------------
>
>                 Key: JBTM-1920
>                 URL: https://issues.jboss.org/browse/JBTM-1920
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: BlackTie
>            Reporter: Gytis Trikleris
>            Assignee: Michael Musgrove
>             Fix For: 5.0.0.M5
>
>
> http://172.17.131.2/view/Narayana+BlackTie/job/narayana/255/TESTS=BLACKTIE,jdk=jdk7.latest,label=linux32el5/consoleText
> http://172.17.131.2/view/Narayana+BlackTie/job/narayana/255/TESTS=BLACKTIE,jdk=jdk7.latest,label=linux32el6/consoleText
> http://172.17.131.2/view/Narayana+BlackTie/job/narayana/255/TESTS=BLACKTIE,jdk=jdk7.latest,label=linux64el5/consoleText
> http://172.17.131.2/view/Narayana+BlackTie/job/narayana/255/TESTS=BLACKTIE,jdk=jdk7.latest,label=linux64el6/consoleText
> {code}
> Test Results:
>      [exec] Run:  14   Failures: 10   Errors: 0
>      [exec] 
>      [exec] 
>      [exec] 1) test: TestTransactions::test_basic (F) line: 90 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTxAvoid.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 2) test: TestTransactions::test_transactions (F) line: 94 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 3) test: TestTransactions::test_protocol (F) line: 125 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 4) test: TestTransactions::test_info (F) line: 165 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 5) test: TestTransactions::test_timeout1 (F) line: 217 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 6) test: TestTransactions::test_timeout2 (F) line: 261 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 7) test: TestTransactions::test_rollback (F) line: 285 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 8) test: TestTransactions::test_hhazard (F) line: 317 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 9) test: TestTransactions::test_RM (F) line: 345 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
>      [exec] 
>      [exec] 
>      [exec] 10) test: TestTransactions::test_recovery (F) line: 486 /home/hudson/workspace/narayana/TESTS/BLACKTIE/jdk/jdk7.latest/label/linux64el6/blacktie/tx/src/test/cpp/TestTransactions.cxx
>      [exec] equality assertion failed
>      [exec] - Expected: 0
>      [exec] - Actual  : -6
> {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