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
Our code uses latest version 2.7.3 of Jinjava. There is a new field, in Context object, that makes it impossible to share across different threads, causing exceptions when the interpreter render method is called:
I think that the field overriddenNonMetaContextVariables should allow concurrent access, otherwise client code needs to explicitly synchronize calls to render for a single top level context which holds this unique instance of this HashMap for a whole tree, which is not ideal:
The text was updated successfully, but these errors were encountered:
sjanel
changed the title
Context's overriddenNonMetaContextVariables member makes it unable to use it concurrently
Bug introduced in 2.7.3 - Context's overriddenNonMetaContextVariables member makes it unable to use it concurrently
Oct 18, 2024
Hello,
Our code uses latest version
2.7.3
of Jinjava. There is a new field, inContext
object, that makes it impossible to share across different threads, causing exceptions when the interpreterrender
method is called:I think that the field
overriddenNonMetaContextVariables
should allow concurrent access, otherwise client code needs to explicitly synchronize calls torender
for a single top level context which holds this unique instance of thisHashMap
for a whole tree, which is not ideal:There is no issue if we revert to
2.7.2
version.The text was updated successfully, but these errors were encountered: