Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-409

Cluster ID Not Found in Message Context when Member is Fetched from Session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0 M7
    • Load Balancer
    • 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

      Attachments

        Activity

          People

            imesh Imesh Gunaratne
            imesh Imesh Gunaratne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: