[ 
https://issues.apache.org/jira/browse/CASSANDRA-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267607#comment-14267607
 ] 

Benjamin Lerer commented on CASSANDRA-8281:
-------------------------------------------

In the latest 2.1 the prepared statement eviction thread is not a problem 
anymore as it is now a daemon thread. 
Due to some change in the code, what is now preventing the application to stop 
is the commit log threads as specified into CASSANDRA-8572.

The quick fix for this problem is to shutdown the {{CommitLog}} in the close 
method of {{CQLSSTableWriter}}.

An other problem is that if {{Config.setClientMode(true)}} is used, the code 
will not work anymore for the latest 2.0 and 2.1 ({{setClientMode}} has been 
removed on trunk). By consequence, I will also have to remove the previous fix 
for this ticket. 

> 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
>             Fix For: 2.1.3
>
>         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)

Reply via email to