maniksurtani/infinispan — comment on commit a208d3115f7ac6938ea4523c2f6759525987deff
File: core/src/main/java/org/infinispan/transaction/AbstractEnlistmentAdapter.java line 81
By mmarkus:

@maniksurtani when a remote get occurs, a remoteTransactions is created and added to the remote transaction table. With this fix, I don't think that the remote transaction is evert cleaned up. Besides being a bug, this might also drastically affect the performance, as the remote transaction table could grow huge.
One way to fix this is by delaying building the RemoteTransaction on a remote node up to the first lock requiring operation: that is either a write, a lock control or an read with force write lock.