You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty obvious when you look at BaseImpl, but reader & writer instances are not thread safe when using responseCallback, masqueradeAs and masqueradeType. Actually hit this today while testing, figure it would be nice to at least document it for future users.
The quick fix on my end was to use proxies & ThreadLocal to cache instances.
The text was updated successfully, but these errors were encountered:
Hmm yes that is definitely a problem users should be made aware of. I think we are avoiding it because we use JMS queues for pushing things to Canvas in parallel and each job creates its own writer object. The readme is already pretty sizable but I'll see if I can fit it in somewhere for now.
Pretty obvious when you look at
BaseImpl
, but reader & writer instances are not thread safe when usingresponseCallback
,masqueradeAs
andmasqueradeType
. Actually hit this today while testing, figure it would be nice to at least document it for future users.The quick fix on my end was to use proxies &
ThreadLocal
to cache instances.The text was updated successfully, but these errors were encountered: