https://bz.apache.org/bugzilla/show_bug.cgi?id=61569

            Bug ID: 61569
           Summary: JMS Point-to-Point Test Plan: response doesn't work
           Product: JMeter
           Version: 3.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Hi,

I selected JMSMessageID for request and JMSCorrelationID for response and this
correlation doesn't work properly.

lib: ApacheJMeter_jms.jar

I have investigated and found that problem is in concurrency. Producer
(FixedQueueExecutor line: 82) send a message, consumer (Receiver line: 134) got
a reply before producer save a request in placeholder and try to save it in 
placeholder, MessageAdmin(line: 124) try to get a request holder but it was not
save till and result will be null and request will fail.

Solution: 
Receiver.java line: 133-135

  } else {
      admin.putReply(messageKey, reply);
  }

replace with:

  } else {
      synchronized(admin) {
         admin.putReply(messageKey, reply);
      }
  }

I fixed and tested this bug on my local machine after that I didn't have any
problem with response fail.

If you need I can provide more details about this bugfix. 

Regards,
Igor

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to