rhuan080 commented on PR #9332:
URL: https://github.com/apache/camel/pull/9332#issuecomment-1429911577

   Hi @oscerd,
   
   Yes, I agree the way this was figured out is a corner case. However the 
Expression is used inside a parallel and multithreaded context, but it is not 
immutable nor thread-safe. Thus, I think we can use an immutable implementation 
to avoid problems. As it is a good practice to parallel processes, I think it 
is an opportunity to improve it. I agreed with @essobedo about the lock and the 
tradeoff of this solution with lock, however, using an immutable implementation 
we don't have this tradeoff and we avoid a problem about concurrency or rance 
condition. 
   
   What do you think about?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to