replication_factor not working in Cassandra 1.1.0 #32

Closed
nberardi opened this Issue May 24, 2012 · 1 comment

Projects

None yet

1 participant

@nberardi
var keyspace = new CassandraKeyspace(new CassandraKeyspaceSchema
                                                    {
                                                        Name = KeyspaceName,
                                                        Strategy = CassandraKeyspaceSchema.ReplicaPlacementStrategySimple,
                                                        ReplicationFactor = 1
                                                    }, db);

Throw and error:

FluentCassandra.Operations.CassandraOperationException: SimpleStrategy requires a replication_factor strategy option. ---> Apache.Cassandra.InvalidRequestException: Exception of type 'Apache.Cassandra.InvalidRequestException' was thrown.

I'm using the 1.1.0 release of Cassandra - presumably something changed and it's not happy with the replication factor value there?

@nberardi nberardi was assigned May 24, 2012
@nberardi

I found the issue, there is a bug in Cassandra 1.1.0 where it ignores the replication_factor property on the KsDef object. It needs to be set through the StrategyOptions.

@nberardi nberardi added a commit that referenced this issue May 24, 2012
@nberardi nberardi moved from the obsolete property replication_factor on the KsDef obje…
…ct to the StrategyOptions to fix issue #32, as of right now this is a step backwords for the intended easy setup
3b61e2b
@nberardi nberardi closed this May 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment