THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
cache.put (k5, v5);
tx2.commit();
}
To deeper understand counter flow it is necessary to explain how ditributed transactions are working.
2PC
Transactions use two-phase-commit protocol to consistently update all participating nodes.
...