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

Xu Zhongxing commented on CASSANDRA-8281:
-----------------------------------------

It could be reproduced on cassandra 2.1.1, but not on 2.1.0.
{code}
import org.apache.cassandra.io.sstable.CQLSSTableWriter;

class A {
    public static void main(String[] args) {
        String schema = "create table mgindex.test (x int primary key, y int)";
        String insert = "insert into mgindex.test (x,y) values(?,?)";

        CQLSSTableWriter w = CQLSSTableWriter.builder()
                                             .inDirectory("/tmp/mgindex/test")
                                             .forTable(schema)
                                             .using(insert)
                                             .build();
        try {
            w.addRow(1,1);
            w.close();
        } catch (Exception e) {
            System.out.println(e);
        }

    }
}
{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
>
> 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