Assuming you're using READ_COMMITTED isolation with PESSIMISTIC locking in Infinispan, please raise a JIRA as long as you can provide a test case.
We have several tests - both for standalone & WF (modeshape/TransactionsTest.java at master · ModeShape/modeshape · GitHub and modeshape/TransactionsTest.java at master · ModeShape/modeshape · GitHub), so whatever this is, it's not straightforward. Thanks.
hchiorean I've created [MODE-2395] JCR Session not seeing changes made on a different thread when using ModeShape 4.1.0.Final - JBoss Issue Tra… to track the issue and attached a PR with an Arquillian Test that can be used to re-create it.
Re-creating it was by no means straight forward and this is most definitely an edge case but it is breaking a number of my integration tests so I would really appreciate help in tracking it down.