StoreService exportSchema does not display all Column families
---------------------------------------------------------------
Key: CASSANDRA-1667
URL: https://issues.apache.org/jira/browse/CASSANDRA-1667
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 0.7 beta 2
Reporter: Edward Capriolo
Priority: Minor
Created a keyspace through thrift then ran StorageService exportSchema() with
JMX. Results do not match 'show keyspaces' namely ks33 does not have any
information on its column family.
ks33 was created like so using a replication factor of 3
{noformat}
public static KsDef createRackUnawareKSandCF(String ksname,String cfname,int
replication){
KsDef newKs = new KsDef();
newKs.setStrategy_class("org.apache.cassandra.locator.SimpleStrategy");
newKs.setName(ksname);
newKs.setReplication_factor(replication);
CfDef cfdef = new CfDef();
cfdef.setKeyspace(ksname);
cfdef.setName(cfname);
newKs.addToCf_defs(cfdef);
return newKs;
}
{noformat}
Output
{noformat}
keyspaces:
- column_families:
- column_type: Standard
comment: ''
compare_with: org.apache.cassandra.db.marshal.BytesType
gc_grace_seconds: 864000
keys_cached: 200000.0
max_compaction_threshold: 32
min_compaction_threshold: 4
name: cf22
preload_row_cache: false
read_repair_chance: 1.0
rows_cached: 0.0
name: ks22
replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
replication_factor: 2
- column_families:
- column_type: Standard
comment: ''
compare_with: org.apache.cassandra.db.marshal.BytesType
gc_grace_seconds: 864000
keys_cached: 200000.0
max_compaction_threshold: 32
min_compaction_threshold: 4
name: cf33
preload_row_cache: false
read_repair_chance: 1.0
rows_cached: 0.0
name: ks33
replica_placement_strategy: org.apache.cassandra.locator.SimpleStrategy
replication_factor: 3
[defa...@unknown] show Keyspaces
Keyspace: system
Replication Factor: 1
Column Families:
Column Family Name: IndexInfo {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
}
Column Family Name: Schema {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.UTF8Type
}
Column Family Name: Migrations {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.TimeUUIDType
}
Column Family Name: LocationInfo {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Column Family Name: HintsColumnFamily {
Column Family Type: Super
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Keyspace: ks22
Replication Factor: 2
Column Families:
Column Family Name: cf22 {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
Keyspace: ks33
Replication Factor: 3
Column Families:
Column Family Name: cf33 {
Column Family Type: Standard
Column Sorted By: org.apache.cassandra.db.marshal.BytesType
}
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.