synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udayanga Wickramasinghe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SYNAPSE-775) Segmentation Fault when Template Endpoint used in loadbalance failover scenario
Date Tue, 31 May 2011 06:01:49 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Udayanga Wickramasinghe updated SYNAPSE-775:
--------------------------------------------

    Attachment: synapse_SYNAPSE-775.patch

fixed template Endpoint with #readyToSend() method. (Template Endpoints were always returning
true for #readyToSend() for LB Algorithm Ctxt )

> Segmentation Fault when Template Endpoint used in loadbalance failover scenario
> -------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-775
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-775
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>         Environment: jdk1.6
>            Reporter: Udayanga Wickramasinghe
>         Attachments: synapse_SYNAPSE-775.patch
>
>
> 1. create Endpoint Template
> 2. create loadbalance failover config
> 3. use tempalte endpoints to point to the template
> 4. run load balance scenario with all backends down
> ie:- sample config
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>     <proxy name="LBProxy" transports="https http" startOnLoad="true">
>         <target faultSequence="errorHandler">
>             <inSequence>
>                 <send>
>                     <endpoint>
>                         <session type="simpleClientSession"/>
>                         <loadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
>                             <endpoint name="templ_ep1" template="endpoint_template"
uri="http://localhost:9001/services/LBService1">
> 				<parameter name="suspend_duration" value="50"/>
>                             </endpoint>
> 			    <endpoint name="templ_ep2" template="endpoint_template" uri="http://localhost:9002/services/LBService1">
> 				<parameter name="suspend_duration" value="20"/>
>                             </endpoint>
> 			    <endpoint name="templ_ep3" template="endpoint_template" uri="http://localhost:9003/services/LBService1">
> 				<parameter name="suspend_duration" value="200"/>
>                             </endpoint>
>                         </loadbalance>
>                     </endpoint>
>                 </send>
>                 <drop/>
>             </inSequence>
>             <outSequence>
>                 <send/>
>             </outSequence>
>         </target>
>         <publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_2.wsdl"/>
>     </proxy>
>     <sequence name="errorHandler">
>         <makefault>
>             <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>             <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
>         </makefault>
>         <send/>
>     </sequence>
> 	
>     <template name="endpoint_template">
> 	    <parameter name="suspend_duration"/>
> 	    <endpoint name="$name">
> 		<address uri="$uri">
> 		    <enableAddressing/>
>                     <suspendDurationOnFailure>$suspend_duration</suspendDurationOnFailure>
> 		</address>
> 	    </endpoint>
>     </template>
> </definitions>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message