[ https://issues.apache.org/jira/browse/SYNAPSE-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15321813#comment-15321813 ]
Isuru Udana Loku Narangoda commented on SYNAPSE-1040: ----------------------------------------------------- Hi Hiranya, I will explain this. We are not deep cloning most of these types. With parallel executions (clone, iterate) for non primitives we are sharing the same reference. For an example the Function stack used in Templates. This leads to major concurrency issues. Ideally we should deep clone all the properties available in the message context which is not practical, at least we should do it for all known types. > cloneMessageContext in MessageHelper does not deep clone all synapse > properties > -------------------------------------------------------------------------------- > > Key: SYNAPSE-1040 > URL: https://issues.apache.org/jira/browse/SYNAPSE-1040 > Project: Synapse > Issue Type: Bug > Components: Core > Affects Versions: 1.1 > Reporter: isuru janith ranawaka > Assignee: Hiranya Jayathilaka > Priority: Blocker > Fix For: 3.0 > > Attachments: SYNAPSE-1040.diff > > > Clone mediator does not clone all the synapse properties inside Synapse > MessageContext. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org For additional commands, e-mail: dev-h...@synapse.apache.org