Closed
Description
CassandraAutoConfiguration
conditionally creates a com.datastax.driver.core.Cluster
bean if it is missing from the BeanFactory.
To gracefully shutdown a Cassandra cluster the close method should be called as part of closing the application context, this is not currently being done.
Spring Data Cassandra classes CassandraCqlClusterFactoryBean and CassandraCqlSessionFactoryBean handle this by implementing the DisposableBean
interface and calling close. Here we can just add it to the destroyMethod of the bean annotation for cluster.
Metadata
Metadata
Assignees
Labels
No labels