[ 
https://issues.apache.org/jira/browse/SYNAPSE-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746390#action_12746390
 ] 

Ruwan Linton commented on SYNAPSE-572:
--------------------------------------

Supun, Why do we need to separate out the two conditions to two blocks in 
implementing the double lock? I mean the recreate condition and the 
cachedTemplates == null condition???

Anyway the issue that you are addressing seems to be an actual issue and is a 
good catch.

> XSLT Mediator possibility of creating multiple Templates by mutiple threads
> ---------------------------------------------------------------------------
>
>                 Key: SYNAPSE-572
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-572
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Supun Kamburugamuva
>            Assignee: Ruwan Linton
>         Attachments: synapse-572.patch
>
>
> With the current code multiple threads can create the XSLT template after 
> seeing that the cache has expired. Also we are always doing a synchronization 
> for creating the template which can be costly. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to