You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Shuler (JIRA)" <ji...@apache.org> on 2014/11/04 16:50:35 UTC
[jira] [Updated] (CASSANDRA-8251) CQLSSTableWriter.builder() throws
ex when more than one table
[ https://issues.apache.org/jira/browse/CASSANDRA-8251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Shuler updated CASSANDRA-8251:
--------------------------------------
Description:
Tested with latest trunk (from github).
This is not the same bug in 2.1.1 where you can't use 2 differents table because they weren't added to KSMetaData. But related because it occurs at the same condition (more than one table) at CQLSSTableWriter.java#L360
static codes in KeySpace call DatabaseDescriptor.createAllDirectories() because StorageService.instance is not in clientMode, throws ex because of NullPointer.
Reproduce bug:
{noformat}
Config.setClientMode(true);
CQLSSTableWriter.builder()
.inDirectory("/var/tmp/kspc/t1")
.forTable("create table kspc.t1 ( id int, primary key (id));")
.using("INSERT INTO kspc.t1 (id) VALUES ( ? );")
.build();
CQLSSTableWriter.builder()
.inDirectory("/var/tmp/kspc/t2")
.forTable("create table kspc.t2 ( id int, primary key (id));")
.using("INSERT INTO kspc.t2 (id) VALUES ( ? );")
.build();
{noformat}
was:
Tested with latest trunk (from github).
This is not the same bug in 2.1.1 where you can't use 2 differents table because they weren't added to KSMetaData. But related because it occurs at the same condition (more than one table) at CQLSSTableWriter.java#L360
static codes in KeySpace call DatabaseDescriptor.createAllDirectories() because StorageService.instance is not in clientMode, throws ex because of NullPointer.
Reproduce bug:
{quote}
Config.setClientMode(true);
CQLSSTableWriter.builder()
.inDirectory("/var/tmp/kspc/t1")
.forTable("create table kspc.t1 ( id int, primary key (id));")
.using("INSERT INTO kspc.t1 (id) VALUES ( ? );")
.build();
CQLSSTableWriter.builder()
.inDirectory("/var/tmp/kspc/t2")
.forTable("create table kspc.t2 ( id int, primary key (id));")
.using("INSERT INTO kspc.t2 (id) VALUES ( ? );")
.build();
{quote}
> CQLSSTableWriter.builder() throws ex when more than one table
> -------------------------------------------------------------
>
> Key: CASSANDRA-8251
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8251
> Project: Cassandra
> Issue Type: Bug
> Environment: ubuntu x64
> Reporter: pierz
>
> Tested with latest trunk (from github).
> This is not the same bug in 2.1.1 where you can't use 2 differents table because they weren't added to KSMetaData. But related because it occurs at the same condition (more than one table) at CQLSSTableWriter.java#L360
> static codes in KeySpace call DatabaseDescriptor.createAllDirectories() because StorageService.instance is not in clientMode, throws ex because of NullPointer.
> Reproduce bug:
> {noformat}
> Config.setClientMode(true);
> CQLSSTableWriter.builder()
> .inDirectory("/var/tmp/kspc/t1")
> .forTable("create table kspc.t1 ( id int, primary key (id));")
> .using("INSERT INTO kspc.t1 (id) VALUES ( ? );")
> .build();
> CQLSSTableWriter.builder()
> .inDirectory("/var/tmp/kspc/t2")
> .forTable("create table kspc.t2 ( id int, primary key (id));")
> .using("INSERT INTO kspc.t2 (id) VALUES ( ? );")
> .build();
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)