You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonas Borgström (JIRA)" <ji...@apache.org> on 2011/07/01 16:16:28 UTC

[jira] [Created] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Changing replication_factor using "update keyspace" not working
---------------------------------------------------------------

                 Key: CASSANDRA-2846
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.8.1
         Environment: A clean 0.8.1 install using the default configuration
            Reporter: Jonas Borgström


Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:

{code}
[default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
37f70d40-a3e9-11e0-0000-242d50cf1fbf
Waiting for schema agreement...
... schemas agree across the cluster
[default@unknown] describe keyspace Test;
Keyspace: Test:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
  Durable Writes: true
    Options: [replication_factor:1]
  Column Families:
[default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
489fe220-a3e9-11e0-0000-242d50cf1fbf
Waiting for schema agreement...
... schemas agree across the cluster
[default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
  Durable Writes: true
    Options: [replication_factor:1]
  Column Families:
{code}

Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?

Relevant bits from system.log:
{code}
Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
{code}


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

       

[jira] [Commented] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Jon Hermes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058855#comment-13058855 ] 

Jon Hermes commented on CASSANDRA-2846:
---------------------------------------

-1, doesn't update strategy_options for KS's that already have SimpleStrategy.
repro:

{noformat}
start 1-node local
stress -o insert -n 1 (create Keyspace1 with SS and RF1)
cli:
  [] update keyspace Keyspace1 with strategy_options=[{replication_factor:2}];
{noformat}

Creating a new keyspace (Keyspace2, with default NTS and [{DC1:1}], then `update keyspace Keyspace2 with placement_strategy='org.apache.cassandra.locator.SimpleStrategy' and strategy_options=[{replication_factor:2}];` does work, however.

> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: 2846.txt
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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

       

[jira] [Commented] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059518#comment-13059518 ] 

Hudson commented on CASSANDRA-2846:
-----------------------------------

Integrated in Cassandra-0.8 #204 (See [https://builds.apache.org/job/Cassandra-0.8/204/])
    fix CLI perpetuating obsolete KsDef.replication_factor
patch by jbellis; tested by Jonas Borgström for CASSANDRA-2846

jbellis : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1142725
Files : 
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/cli/CliClient.java
* /cassandra/branches/cassandra-0.8/CHANGES.txt


> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: 2846.txt
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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

       

[jira] [Updated] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Jon Hermes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Hermes updated CASSANDRA-2846:
----------------------------------

    Reviewer: jhermes  (was: bcoverston)

> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: 2846.txt
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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

       

[jira] [Updated] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2846:
--------------------------------------

    Attachment: 2846.txt

        // server helpfully sets deprecated replication factor when it sends a KsDef back, for older clients.
        // we need to unset that on the new KsDef we create to avoid being treated as a legacy client in return.


> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: 2846.txt
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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

       

[jira] [Updated] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2846:
--------------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 0.8.2
         Assignee: Jonathan Ellis

> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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

       

[jira] [Commented] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Jonas Borgström (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059373#comment-13059373 ] 

Jonas Borgström commented on CASSANDRA-2846:
--------------------------------------------

Jonathan, thanks for your fast response. Your patch works for me.

> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: 2846.txt
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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

       

[jira] [Issue Comment Edited] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Jon Hermes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058855#comment-13058855 ] 

Jon Hermes edited comment on CASSANDRA-2846 at 7/1/11 11:21 PM:
----------------------------------------------------------------

--1, doesn't update strategy_options for KS's that already have SimpleStrategy.-

+1, it's good.

      was (Author: jhermes):
    -1, doesn't update strategy_options for KS's that already have SimpleStrategy.
repro:

{noformat}
start 1-node local
stress -o insert -n 1 (create Keyspace1 with SS and RF1)
cli:
  [] update keyspace Keyspace1 with strategy_options=[{replication_factor:2}];
{noformat}

Creating a new keyspace (Keyspace2, with default NTS and [{DC1:1}], then `update keyspace Keyspace2 with placement_strategy='org.apache.cassandra.locator.SimpleStrategy' and strategy_options=[{replication_factor:2}];` does work, however.
  
> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: 2846.txt
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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

       

[jira] [Commented] (CASSANDRA-2846) Changing replication_factor using "update keyspace" not working

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058856#comment-13058856 ] 

Jonathan Ellis commented on CASSANDRA-2846:
-------------------------------------------

Jonas's test case works for me.

> Changing replication_factor using "update keyspace" not working
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-2846
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2846
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>         Environment: A clean 0.8.1 install using the default configuration
>            Reporter: Jonas Borgström
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.8.2
>
>         Attachments: 2846.txt
>
>
> Unless I've misunderstood the new way to do this with 0.8 I think "update keyspace" is broken:
> {code}
> [default@unknown] create keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:1}];
> 37f70d40-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;
> Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> [default@unknown] update keyspace Test with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = [{replication_factor:2}];
> 489fe220-a3e9-11e0-0000-242d50cf1fbf
> Waiting for schema agreement...
> ... schemas agree across the cluster
> [default@unknown] describe keyspace Test;                                                                                                                   Keyspace: Test:
>   Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
>   Durable Writes: true
>     Options: [replication_factor:1]
>   Column Families:
> {code}
> Isn't the second "describe keyspace" supposed to to say "replication_factor:2"?
> Relevant bits from system.log:
> {code}
> Migration.java (line 116) Applying migration 489fe220-a3e9-11e0-0000-242d50cf1fbf Update keyspace Testrep strategy:SimpleStrategy{}durable_writes: true to Testrep strategy:SimpleStrategy{}durable_writes: true
> UpdateKeyspace.java (line 74) Keyspace updated. Please perform any manual operations
> {code}

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