Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It seems like there is an issue in statistics reporting functionality where it looks for the Cluster ID in Synapse Message Context.
The problem is that when a member is fetched from an existing session the Cluster ID property is not set in Message Context. As a result statistics reporting functionality fails with following error:
[2014-02-05 12:38:28,227] DEBUG - TenantAwareLoadBalanceEndpoint Could not increment in-flight request count
java.lang.RuntimeException: Cluster id not found in message context
at org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint.incrementInFlightRequestCount(TenantAwareLoadBalanceEndpoint.java:557)
at org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint.sendToApplicationMember(TenantAwareLoadBalanceEndpoint.java:542)
at org.apache.stratos.load.balancer.endpoint.TenantAwareLoadBalanceEndpoint.send(TenantAwareLoadBalanceEndpoint.java:120)
at org.apache.synapse.endpoints.ClassEndpoint.send(ClassEndpoint.java:87)
at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:228)
at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:336)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:168)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
[2014-02-05 12:38:28,283] DEBUG - ResponseInterceptor Response interceptor mediation started
[2014-02-05 12:38:28,283] DEBUG - ResponseInterceptor Could not decrement in-flight request count : cluster id not found in message context