Hi Vinod, I have found the potential problem: one instance of the class *org.wso2.carbon.business.messaging.hl7.common.HL7ProcessingContext* is shared over multiple threads request for the same proxy and the blockingQueue *applicationResponses *could contains all the responses(in any order based on server response time). When *handleApplicationACK *is called from each thread this method return *the first *response in the queue(if available, otherwise the thread wait for any), without making sure it is the answer(ACK) associated with the current message(*hl7Msg *parameter). I have observed that the order of the *applicationResponses *queue could be different of the order of the waiting thread. This causes the wrong ACK to be sent to the sender.
How to we proceed to the bug fix? Many thanks Marco P.S.: I have already opened this issue: https://github.com/wso2/carbon-mediation/issues/928 *Marco Sessa* *Software Analyst / Developer* CSP S.p.A. Napoli - Centro Direzionale, isola G/1, scala C Tel: 081.191.38.607 Cel: 340.8689247 Email: marco.se...@cspnet.it www.cspnet.it 2017-12-02 6:20 GMT+01:00 Vinod Kavinda <vi...@wso2.com>: > Hi Marco, > The HL7 related code is in [1] inside carbon-mediation repo. > > [1] - https://github.com/wso2/carbon-mediation/tree/master/ > components/business-adaptors/hl7 > > Regards, > Vinod > > On Sat, Dec 2, 2017 at 10:01 AM, Jason De Silva <jas...@wso2.com> wrote: > >> Hi Marco, >> >> In order to debug the code you should be able to do so by checking out >> the code in [1] as mentioned in [2]. >> >> [1] https://github.com/wso2/product-ei >> [2] https://github.com/wso2/product-ei#build-from-the-source >> >> Regards, >> Jason >> >> Jason De Silva >> *Software Engineer - QA* >> Mobile: +94 (0) 772 097 678 >> Email: jas...@wso2.com >> WSO2 Inc. www.wso2.com >> <http://wso2.com/signature> >> >> On Sat, Dec 2, 2017 at 1:54 AM, Marco Sessa <marco.se...@cspnet.it> >> wrote: >> >>> Hi Dev, >>> I am analyzed the ACK interleaving with Wireshark and I have observed >>> that WSO2 Integrator send back ACK in the wrong channel if receive parallel >>> messages on a HL7 proxy. >>> I have opened this issue >>> <https://github.com/wso2/product-ei/issues/1421> on github. >>> I would try to debug the code, but I not know which source code of >>> projects other then wso2/product-ei I should download. >>> >>> Thanks for help >>> Marco >>> >>> *Marco Sessa* >>> >>> >>> *Software Analyst / Developer* >>> CSP S.p.A. >>> Napoli - Centro Direzionale, >>> isola G/1, scala C >>> Tel: 081.191.38.607 >>> Cel: 340.8689247 >>> Email: marco.se...@cspnet.it >>> www.cspnet.it >>> >>> >>> 2017-11-29 11:59 GMT+01:00 Marco Sessa <marco.se...@cspnet.it>: >>> >>>> Hi All, >>>> I am struggling with an drawback related to ACK interleaving on a HL7 >>>> proxy (EI 6.1.0). >>>> In some conditions (parallel request to the same proxy) the system >>>> sender seems to receive Interleaved ACKs . >>>> I have no control on sender(and on receiver) system and in the log the >>>> ACKs come in to the correct sequence. >>>> In the Analytics profile the messages and relative ACK are paired >>>> correctly, but the sender receive a wrokg ACKs for some request. >>>> >>>> The proxy is in attachment >>>> >>>> My problem is know what IP and PORT is used by WSO2 Integrator to send >>>> back the ACKs for exclude an ESB problem. >>>> >>>> >>>> Thank in advance >>>> Marco >>>> >>>> *Marco Sessa* >>>> >>>> >>>> *Software Analyst / Developer* >>>> CSP S.p.A. >>>> Napoli - Centro Direzionale, >>>> isola G/1, scala C >>>> Tel: 081.191.38.607 >>>> Cel: 340.8689247 >>>> Email: marco.se...@cspnet.it >>>> www.cspnet.it >>>> >>>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Vinod Kavinda > Senior Software Engineer > *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.* > Mobile : +94 (0) 712 415544 > Blog : http://soatechflicks.blogspot.com/ > [image: http://wso2.com/signature] > <http://wso2.com/signature> > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev