valchkou / cassandra-driver-mapping

JPA addon for DataStax Java Driver for Cassandra
57 stars 24 forks source link

"Re-preparing already prepared query" when using Mapper CRUD #72

Closed bschwanitz closed 8 years ago

bschwanitz commented 8 years ago

Using cassandra-driver-mapping version 2.1.9, I'm seeing lots of "Re-preparing already prepared query..." warnings when using Mapper.save(), .get(), and .delete(). Any suggestions for preventing these?

bschwanitz commented 8 years ago

According to https://datastax.github.io/java-driver/2.1.7/features/object_mapper/using/, MappingManager is thread safe. So, instantiating a single MappingManager and using it in all threads has eliminated this issue.