[ https://issues.apache.org/jira/browse/CASSANDRA-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14278535#comment-14278535 ]
Benjamin Lerer commented on CASSANDRA-8281: ------------------------------------------- {quote} Is it possible to use `Keyspace.openWithoutSSTables`? It seems it bypasses initialized check. {quote} {{Keyspace.open}} is called within {{CQLSSTableWriter.Builder.forTable}} but also within {{UpdateStatement.addUpdateForKey}} which is called from {{CQLSSTableWriter.addRow}}. I think that we could use {{Keyspace.openWithoutSSTables}} within the {{forTable}} method but not within {{UpdateStatement}}. As {{Keyspace.setInitialized()}} will still be needed anyway, I fill more comfortable keeping the patches as they are. > 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-V2-2.1.txt, CASSANDRA-8281-V2-trunk.txt, > 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)