You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2015/01/07 14:48:34 UTC
[jira] [Updated] (CASSANDRA-8572) CQLSSTableWriter shouldn't
trigger the start of the commit log
[ https://issues.apache.org/jira/browse/CASSANDRA-8572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Lebresne updated CASSANDRA-8572:
----------------------------------------
Summary: CQLSSTableWriter shouldn't trigger the start of the commit log (was: Opening a Keyspace trigger the start of the commit log)
> CQLSSTableWriter shouldn't trigger the start of the commit log
> --------------------------------------------------------------
>
> Key: CASSANDRA-8572
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8572
> Project: Cassandra
> Issue Type: Bug
> Reporter: Benjamin Lerer
> Priority: Minor
>
> Due to static dependencies, calling {{Keyspace.open}} trigger the creation of the {{CommitLog}} singleton which in turn trigger the start of all the threads used by the {{CommitLog}}.
> For simple client like {{CQLSSTableWriter}} that dependency is an issue as it can prevent the JVM from shutting down if the CommitLog is not shutdown explicitly.
>
> The following stacktrace show the initialization chain that trigger the {{CommitLog}}:
> {code}
> CommitLogSegmentManager.<init>() line: 173
> CommitLog.<init>() line: 70
> CommitLog.<clinit>() line: 55
> Memtable.<init>(ColumnFamilyStore) line: 66
> DataTracker.init() line: 378
> DataTracker.<init>(ColumnFamilyStore) line: 54
> ColumnFamilyStore.<init>(Keyspace, String, IPartitioner, int, CFMetaData, Directories, boolean) line: 281
> ColumnFamilyStore.createColumnFamilyStore(Keyspace, String, IPartitioner, CFMetaData, boolean) line: 443
> ColumnFamilyStore.createColumnFamilyStore(Keyspace, String, boolean) line: 414
> Keyspace.initCf(UUID, String, boolean) line: 327
> Keyspace.<init>(String, boolean) line: 280
> Keyspace.open(String, Schema, boolean) line: 122
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)