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

Amos Feng (JIRA) issues at jboss.org
Thu Nov 26 02:49:00 EST 2015


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

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

I did some debug with the CrashRecovery2
Run with the following command
{code}
./build.sh -f ArjunaJTA/jta/pom.xml clean test -Dtest=CrashRecovery2 -Dorg.jboss.byteman.debug -Dorg.jboss.byteman.verbose -PcodeCoverage
{code}

check the output of the test and it looks like the rule does not be triggered as it can not find the local binding var "$this"
The fail2pc rule is
{code}
RULE Fail 2PC
CLASS  com.arjuna.ats.arjuna.coordinator.BasicAction
METHOD phase2Commit
AT ENTRY
BIND NOTHING
IF readCounter("phase2commit") == 0
	DO debug("Called"),
	incrementCounter("phase2commit");
	com.arjuna.ats.arjuna.coordinator.ActionManager.manager().remove($this.get_uid());
   	RETURN
ENDRULE
{code}

The failure is
{code}
start:4 triggerPos:0 end:535 (I add this debug message in agent/src/main/java/org/jboss/byteman/agent/adapter/RuleCheckMethodAdapter.java)
RuleCheckMethodAdapter.checkBindings : invalid local variable binding $this checking method phase2Commit(Z)V
{code}

if we run without the jacoco,  the start and end is {code} start:0 triggerPos:0 end:327 {code}
[~adinn] how do you think about this ?

> 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