When you perform multiple TX write operations in one transaction (put, replace, lock, etc) and one of the nodes goes down, there is a slight chance that some locks will be lost and acquired by another transaction before current transaction ends. So client ends up with two transactions holding the same lock on pessimistic cache at the same time. Both transactions commit at the end successfully.