riptano/hector-jpa — Issue #19: object removing gets blocked
Author: PacoQuinhoy
Created: 2011-11-30 11:58:12+00:00
State: open

Hi all,

I'm new with Cassandra and JPA. I've copied the code from the SimpleTest and I'm making test against a two-node Cassandra cluster. The persist and find operations work correctly, but when I try to execute the remove, the program gets blocked during 30 seconds (aprox) and then it throws a TimeoutException. I think that the code is correct, so, any idea on what is going wrong?

EntityManager em3 = entityManagerFactory.createEntityManager();
em3.getTransaction().begin();
Store returnedStore2 = em3.find(Store.class, store.getId());
em3.remove(returnedStore2);
em3.getTransaction().commit();
em3.close();