[
https://issues.apache.org/jira/browse/CASSANDRA-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14259510#comment-14259510
]
Benyi Wang commented on CASSANDRA-8281:
---------------------------------------
if I invoke {{evictionCheckTimer.shutdown}} using java reflection, the program
will exit successfully. Call this method after {{w.close()}}.
{code}
public static void shutdownQueryProcessorThread()
throws NoSuchFieldException, SecurityException,
IllegalArgumentException, IllegalAccessException {
Field f =
QueryProcessor.class.getDeclaredField("evictionCheckTimer");
f.setAccessible(true);
ScheduledExecutorService evictionCheckTimer =
(ScheduledExecutorService) f
.get(null);
evictionCheckTimer.shutdown();
}
{code}
> CQLSSTableWriter close does not work
> ------------------------------------
>
> Key: CASSANDRA-8281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8281
> Project: Cassandra
> Issue Type: Bug
> Components: API
> Environment: Cassandra 2.1.1
> Reporter: Xu Zhongxing
> Assignee: Benjamin Lerer
> Attachments: CASSANDRA-8281.txt
>
>
> I called CQLSSTableWriter.close(). But the program still cannot exit. But the
> same code works fine on Cassandra 2.0.10.
> It seems that CQLSSTableWriter cannot be closed, and blocks the program from
> exit.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)