rantav/hector — Issue #358: ThriftKsDef sets replication_factor even for NetworkTopologyStrategy
Author: masseyke
Created: 2011-12-06 22:53:12+00:00
State: open

All of the constructors for me.prettyprint.cassandra.service.ThriftKsDef set the replication_factor on the strategyOptions, regardless of the strategyClass. But Cassandra 1.0.x's org.apache.cassandra.locator.NetworkTopologyStrategy class blows up with the error "replication_factor is an option for SimpleStrategy, not NetworkTopologyStrategy" if you give it a replication_factor. As a workaround we are removing "replication_factor" from the ThriftKsDef after it is created but before it is sent to Cassandra.