You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Evaldo Gardenali (JIRA)" <ji...@apache.org> on 2011/09/02 20:27:09 UTC

[jira] [Updated] (CASSANDRA-3129) "show schema" in CLI outputs invalid text structure that cannot be replayed (easily tweakable though)

     [ https://issues.apache.org/jira/browse/CASSANDRA-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Evaldo Gardenali updated CASSANDRA-3129:
----------------------------------------

    Description: 
Log explaining the problem.

[default@unknown] connect cassandra2/9160;                                       
Connected to: "Lab1" on cassandra2/9160

* Create a keyspace with a pretty simple definition
[default@unknown] create keyspace foo
...	  with placement_strategy = 'SimpleStrategy'
...	  and strategy_options = [{replication_factor : 1}];
f9e13340-d58f-11e0-0000-e3f60146f2df
Waiting for schema agreement...
... schemas agree across the cluster
[default@unknown] use foo;
Authenticated to keyspace: foo

* Copy the schema so we can paste it later
[default@foo] show schema; 
create keyspace foo
  and replication_factor = 1
  with placement_strategy = 'SimpleStrategy'
  and strategy_options = [{replication_factor : 1}];

use foo;


* Remove the keyspace, so we can paste the exact same text above
[default@foo] drop keyspace foo;
07c93a70-d590-11e0-0000-e3f60146f2df
Waiting for schema agreement...
... schemas agree across the cluster

* Paste the schema shown above as result of the 'show schema' command
[default@unknown] create keyspace foo
...	  and replication_factor = 1
...	  with placement_strategy = 'SimpleStrategy'
...	  and strategy_options = [{replication_factor : 1}];
No enum constant org.apache.cassandra.cli.CliClient.AddKeyspaceArgument.REPLICATION_FACTOR
* Presented an error that should not occur if show schema generated valid text


  was:
Log explaining the problem. Comments in lines starting with ####

[default@unknown] connect cassandra2/9160;                                       
Connected to: "Lab1" on cassandra2/9160

#### Create a keyspace with a pretty simple definition
[default@unknown] create keyspace foo
...	  with placement_strategy = 'SimpleStrategy'
...	  and strategy_options = [{replication_factor : 1}];
f9e13340-d58f-11e0-0000-e3f60146f2df
Waiting for schema agreement...
... schemas agree across the cluster
[default@unknown] use foo;
Authenticated to keyspace: foo

#### Copy the schema so we can paste it later
[default@foo] show schema; 
create keyspace foo
  and replication_factor = 1
  with placement_strategy = 'SimpleStrategy'
  and strategy_options = [{replication_factor : 1}];

use foo;


#### Remove the keyspace, so we can paste the exact same text above
[default@foo] drop keyspace foo;
07c93a70-d590-11e0-0000-e3f60146f2df
Waiting for schema agreement...
... schemas agree across the cluster

#### Paste the schema shown above as result of the 'show schema' command
[default@unknown] create keyspace foo
...	  and replication_factor = 1
...	  with placement_strategy = 'SimpleStrategy'
...	  and strategy_options = [{replication_factor : 1}];
No enum constant org.apache.cassandra.cli.CliClient.AddKeyspaceArgument.REPLICATION_FACTOR
#### Presented an error that should not occur if show schema generated valid text



> "show schema" in CLI outputs invalid text structure that cannot be replayed (easily tweakable though)
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3129
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 0.8.4
>         Environment: CentOS 6.0 
> Linux cassandra2.local 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.7.0"
> Java(TM) SE Runtime Environment (build 1.7.0-b147)
> Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
> Cassandra 0.8.4 from the official tarball, also reproducible on the datastax 0.8.4-1 rpm.
>            Reporter: Evaldo Gardenali
>            Priority: Minor
>
> Log explaining the problem.
> [default@unknown] connect cassandra2/9160;                                       
> Connected to: "Lab1" on cassandra2/9160
> * Create a keyspace with a pretty simple definition
> [default@unknown] create keyspace foo
> ...	  with placement_strategy = 'SimpleStrategy'
> ...	  and strategy_options = [{replication_factor : 1}];
> f9e13340-d58f-11e0-0000-e3f60146f2df
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] use foo;
> Authenticated to keyspace: foo
> * Copy the schema so we can paste it later
> [default@foo] show schema; 
> create keyspace foo
>   and replication_factor = 1
>   with placement_strategy = 'SimpleStrategy'
>   and strategy_options = [{replication_factor : 1}];
> use foo;
> * Remove the keyspace, so we can paste the exact same text above
> [default@foo] drop keyspace foo;
> 07c93a70-d590-11e0-0000-e3f60146f2df
> Waiting for schema agreement...
> ... schemas agree across the cluster
> * Paste the schema shown above as result of the 'show schema' command
> [default@unknown] create keyspace foo
> ...	  and replication_factor = 1
> ...	  with placement_strategy = 'SimpleStrategy'
> ...	  and strategy_options = [{replication_factor : 1}];
> No enum constant org.apache.cassandra.cli.CliClient.AddKeyspaceArgument.REPLICATION_FACTOR
> * Presented an error that should not occur if show schema generated valid text

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira