[jbossts-issues] [JBoss JIRA] (JBTM-2553) Investigate the test with byteman do not work with the jacoco

Amos Feng (JIRA) issues at jboss.org
Wed Dec 2 06:16:00 EST 2015


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

Amos Feng commented on JBTM-2553:
---------------------------------

yeah, $0 works in the fail2pc.btm but it looks like the $this does work in the commitMarkableResourceFailAfterCommit.btm
{code}
RULE Fail first phase2Commit
CLASS  com.arjuna.ats.arjuna.coordinator.BasicAction
METHOD doCommit
AT EXIT
BIND NOTHING
IF readCounter("phase2commit") == 0
	DO debug("Called"),
	incrementCounter("phase2commit");
	com.arjuna.ats.arjuna.coordinator.ActionManager.manager().remove($this.get_uid());
   	throw new Error();
ENDRULE

RULE Return not inflight
CLASS  com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule
METHOD isTransactionInMidFlight
AT ENTRY
BIND NOTHING
IF TRUE
DO
	RETURN false;
ENDRULE
{code}

The "Fail first phase2Commit" is triggered but the "Return not inflight" does not been installed. The other issue is that the jacoco could change the ordering of the elements in the recordList as the first XAResource is not the one expected.

you can see the failure with running
{code}
./build.sh -f ArjunaJTA/jta/pom.xml clean test -Dtest=TestCommitMarkableResourceFailActivate -Dorg.jboss.byteman.verbose -PcodeCoverage
{code}

> Investigate the test with byteman do not work with the jacoco
> -------------------------------------------------------------
>
>                 Key: JBTM-2553
>                 URL: https://issues.jboss.org/browse/JBTM-2553
>             Project: JBoss Transaction Manager
>          Issue Type: Sub-task
>          Components: Testing
>            Reporter: Amos Feng
>            Assignee: Amos Feng
>             Fix For: 5.next
>
>




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbossts-issues mailing list