galderz/infinispan — comment on commit fa419a1b22f56faa49e66588728fa9d580aafaed
File: core/src/main/java/org/infinispan/interceptors/CacheLoaderInterceptor.java line 151
By galderz:

See the JIRA, reading the flags out of the context mean recreating a brand new context for each command to be applied in the remote node within the transaction. This proved to be rather complex to build and it's performance is also debatable.

I agree that in terms of consistency this solution is a bit problematic.

Sanne, the more I think about it, the more I see flag belonging to commands rather to context. Can you think of any flag not associated with a command or operation? At the beginning, they used to be in thread locals in context, now they even travel with commands to be applied in remote nodes, so it seems to me that we're leaning towards it's natural place which is commands.

We can certainly open a debate in the dev forums where this can be discussed properly and situations I might have forgotten about can be studied.