You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use astyanax cassandra driver on tomcat to access data from cassandra. while stopping tomcat server; it is hung on threads started from astyanax library. Has any one come across this issue?
this seems to create memory leaks for my application
is there any resolution for this?
I do have code which is to supposed to bring down the connection on shutdown
@PreDestroypublicvoidcleanup(){if(!this.shutdownPerformed.booleanValue()&&this.contextMap!=null&&!this.contextMap.isEmpty()){this.shutdownPerformed=Boolean.valueOf(true);logger.info("Shutdown context for "+this.contextMap.keySet());Iteratori$=this.contextMap.keySet().iterator();while(i$.hasNext()){StringksName=(String)i$.next();AstyanaxContextcontext=(AstyanaxContext)this.contextMap.get(ksName);if(context!=null){logger.info("shutdown context for keyspace "+ksName);ExecutorServiceasyncExecutor=context.getAstyanaxConfiguration().getAsyncExecutor();asyncExecutor.shutdown();try{asyncExecutor.awaitTermination(10000L,TIMEUNIT.MILLISECONDS);}catch(InterruptedExceptionvar6){;}context.shutdown();}}}}
The text was updated successfully, but these errors were encountered:
I use astyanax cassandra driver on tomcat to access data from cassandra. while stopping tomcat server; it is hung on threads started from astyanax library. Has any one come across this issue?
this seems to create memory leaks for my application
is there any resolution for this?
I do have code which is to supposed to bring down the connection on shutdown
The text was updated successfully, but these errors were encountered: