@Override protected void createCacheManagers() throws Throwable { ConfigurationBuilder c = getDefaultClusteredCacheConfig(CacheMode.DIST_SYNC, true); c.transaction() .transactionMode(TransactionMode.TRANSACTIONAL) .lockingMode(LockingMode.PESSIMISTIC) .locking().isolationLevel(IsolationLevel.REPEATABLE_READ) .locking().lockAcquisitionTimeout(TestingUtil.shortTimeoutMillis()); c.clustering().hash().numOwners(1).groups().enabled(); createClusteredCaches(2, "atomic", c); } }