Buggy code:
private List < ColumnOrSuperColumn > thriftifySuperColumns ( Collection < IColumn > columns , boolean reverseOrder ) { } private List < ColumnOrSuperColumn > thriftifyCounterSuperColumns ( Collection < IColumn > columns , boolean reverseOrder ) { } private Map < ByteBuffer , List < ColumnOrSuperColumn > > getSlice ( List < ReadCommand > commands , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private List < ColumnOrSuperColumn > thriftifyColumnFamily ( ColumnFamily cf , boolean subcolumnsOnly , boolean reverseOrder ) { } public List < ColumnOrSuperColumn > get_slice ( ByteBuffer key , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public Map < ByteBuffer , List < ColumnOrSuperColumn > > multiget_slice ( List < ByteBuffer > keys , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private Map < ByteBuffer , List < ColumnOrSuperColumn > > multigetSliceInternal ( String keyspace , List < ByteBuffer > keys , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private ColumnOrSuperColumn internal_get ( ByteBuffer key , ColumnPath column_path , ConsistencyLevel consistency_level ) throws InvalidRequestException , NotFoundException , TimedOutException , UnavailableException { } public ColumnOrSuperColumn get ( ByteBuffer key , ColumnPath column_path , ConsistencyLevel consistency_level ) throws InvalidRequestException , NotFoundException , TimedOutException , UnavailableException { } public int get_count ( ByteBuffer key , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public Map < ByteBuffer , Integer > multiget_count ( List < ByteBuffer > keys , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private void internal_insert ( ByteBuffer key , ColumnParent column_parent , Column column , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public void insert ( ByteBuffer key , ColumnParent column_parent , Column column , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private void internal_batch_mutate ( Map < ByteBuffer , Map < String , List < Mutation > > > mutation_map , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public void batch_mutate ( Map < ByteBuffer , Map < String , List < Mutation > > > mutation_map , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private void internal_remove ( ByteBuffer key , ColumnPath column_path , long timestamp , ConsistencyLevel consistency_level , boolean isCommutativeOp ) throws InvalidRequestException , TimedOutException , UnavailableException { } public void remove ( ByteBuffer key , ColumnPath column_path , long timestamp , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private void doInsert ( ConsistencyLevel consistency_level , List < ? extends IMutation > mutations ) throws InvalidRequestException , TimedOutException , UnavailableException { } public KsDef describe_keyspace ( String table ) throws InvalidRequestException , NotFoundException { } public List < KeySlice > get_range_slices ( ColumnParent column_parent , SlicePredicate predicate , KeyRange range , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException , TException { } private List < KeySlice > thriftifyKeySlices ( List < Row > rows , ColumnParent column_parent , SlicePredicate predicate ) { } public List < KeySlice > get_indexed_slices ( ColumnParent column_parent , IndexClause index_clause , SlicePredicate column_predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException , TException { } public List < KsDef > describe_keyspaces ( ) throws InvalidRequestException , TException { } public String describe_cluster_name ( ) throws TException { } public String describe_version ( ) throws TException { } public List < TokenRange > describe_ring ( String keyspace ) throws InvalidRequestException { } public String describe_partitioner ( ) throws TException { } public String describe_snitch ( ) throws TException { } public List < String > describe_splits ( String cfName , String start_token , String end_token , int keys_per_split ) throws InvalidRequestException , TException { } public void login ( AuthenticationRequest auth_request ) throws AuthenticationException , AuthorizationException , TException { } private void schedule ( ) { } private void release ( ) { } private static void applyMigrationOnStage ( final Migration m ) { } public synchronized String system_add_column_family ( CfDef cf_def ) throws InvalidRequestException , SchemaDisagreementException , TException { } public synchronized String system_drop_column_family ( String column_family ) throws InvalidRequestException , SchemaDisagreementException , TException { } public synchronized String system_add_keyspace ( KsDef ks_def ) throws InvalidRequestException , SchemaDisagreementException , TException { CassandraServer . logger . debug ( "add_keyspace" ) ; state ( ) . hasKeyspaceSchemaAccess ( WRITE ) ; validateSchemaAgreement ( ) ; ThriftValidation . validateKeyspaceNotYetExisting ( ks_def . name ) ; for ( CfDef cf : ks_def . cf_defs ) { if ( ! ( cf . getKeyspace ( ) . equals ( ks_def . getName ( ) ) ) ) { <START_BUG> throw new InvalidRequestException ( ( ( "CsDef<seq2seq4repair_space>(" + ( cf . getName ( ) ) ) + ")<seq2seq4repair_space>had<seq2seq4repair_space>a<seq2seq4repair_space>keyspace<seq2seq4repair_space>definition<seq2seq4repair_space>that<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>KsDef" ) ) ; <END_BUG> } } try { Collection < CFMetaData > cfDefs = new ArrayList < CFMetaData > ( ks_def . cf_defs . size ( ) ) ; for ( CfDef cf_def : ks_def . cf_defs ) { CFMetaData . addDefaultIndexNames ( cf_def ) ; ThriftValidation . validateCfDef ( cf_def , null ) ; cfDefs . add ( CFMetaData . fromThrift ( cf_def ) ) ; } ThriftValidation . validateKsDef ( ks_def ) ; CassandraServer . applyMigrationOnStage ( new AddKeyspace ( KSMetaData . fromThrift ( ks_def , cfDefs . toArray ( new CFMetaData [ cfDefs . size ( ) ] ) ) ) ) ; return DatabaseDescriptor . getDefsVersion ( ) . toString ( ) ; } catch ( ConfigurationException e ) { InvalidRequestException ex = new InvalidRequestException ( e . getMessage ( ) ) ; ex . initCause ( e ) ; throw ex ; } catch ( IOException e ) { InvalidRequestException ex = new InvalidRequestException ( e . getMessage ( ) ) ; ex . initCause ( e ) ; throw ex ; } }

Fix:
throw new InvalidRequestException ( ( ( "CfDef<seq2seq4repair_space>(" + ( cf . getName ( ) ) ) + ")<seq2seq4repair_space>had<seq2seq4repair_space>a<seq2seq4repair_space>keyspace<seq2seq4repair_space>definition<seq2seq4repair_space>that<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>KsDef" ) ) ;