]
Sascha Dirbach updated RTGOV-663:
---------------------------------
Attachment: sy-sca-rtgov.zip
Reproducer
Nested SwitchYard service calls are not logged correctly
--------------------------------------------------------
Key: RTGOV-663
URL:
https://issues.jboss.org/browse/RTGOV-663
Project: RTGov (Run Time Governance)
Issue Type: Bug
Components: Activity Collector
Affects Versions: 2.1.0.Beta1
Environment: Tested on:
JBoss FSW 6.0.0 with RTGov UI Version 2 and
RTGov Distribution with SwithchYard 2 & JBoss EAP 6.4
Reporter: Sascha Dirbach
Assignee: Gary Brown
Attachments: sy-sca-rtgov.zip
When I have a SwitchYard Project with a nested service call in the same Thread (e.g.
same-machine SCA service) the outer invocation information is lost in the activity
collector, as the ActivityUnit is kept in a ThreadLocal member variable of
org.overlord.rtgov.activity.collector.AbstractActivityCollector. By calling the nested
service, the previous (outer) ActivityUnit is lost.
The source code comments & documentation state that nested calls of startScope &
endScope are not supported, but I think SwitchYard services with nested service calls in
the same Thread are not uncommon.