Buggy code:
public class CassandraServer implements Cassandra . Iface { private static Logger logger = Logger . getLogger ( CassandraServer . class ) ; private static final List < Column > EMPTY_COLUMNS = Collections . emptyList ( ) ; private static final List < SuperColumn > EMPTY_SUPERCOLUMNS = Collections . emptyList ( ) ; protected StorageService storageService ; public CassandraServer ( ) { } public void start ( ) throws IOException { } protected ColumnFamily readColumnFamily ( ReadCommand command , int consistency_level ) throws InvalidRequestException { String cfName = command . getColumnFamilyName ( ) ; ThriftValidation . validateKey ( command . key ) ; if ( consistency_level == ( ConsistencyLevel . ZERO ) ) { throw new InvalidRequestException ( "Consistency<seq2seq4repair_space>level<seq2seq4repair_space>zero<seq2seq4repair_space>may<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>applied<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>operations" ) ; } if ( consistency_level == ( ConsistencyLevel . ALL ) ) { throw new InvalidRequestException ( "Consistency<seq2seq4repair_space>level<seq2seq4repair_space>all<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>yet<seq2seq4repair_space>supported<seq2seq4repair_space>on<seq2seq4repair_space>read<seq2seq4repair_space>operations" ) ; } Row row ; try { <START_BUG> row = StorageProxy . readProtocol ( command , ONE ) ; <END_BUG> } catch ( IOException e ) { throw new RuntimeException ( e ) ; } catch ( TimeoutException e ) { throw new RuntimeException ( e ) ; } if ( row == null ) { return null ; } return row . getColumnFamily ( cfName ) ; } public List < Column > thriftifyColumns ( Collection < IColumn > columns ) { } public List < Column > thriftifyColumns ( Collection < IColumn > columns , boolean reverseOrder ) { } private List < Column > getSlice ( ReadCommand command , int consistency_level ) throws InvalidRequestException { } public List < Column > get_slice_by_names ( String table , String key , ColumnParent column_parent , List < byte [ ] > column_names , int consistency_level ) throws InvalidRequestException , NotFoundException { } public List < Column > get_slice ( String table , String key , ColumnParent column_parent , byte [ ] start , byte [ ] finish , boolean is_ascending , int count , int consistency_level ) throws InvalidRequestException , NotFoundException { } public Column get_column ( String table , String key , ColumnPath column_path , int consistency_level ) throws InvalidRequestException , NotFoundException { } public int get_column_count ( String table , String key , ColumnParent column_parent , int consistency_level ) throws InvalidRequestException { } public void insert ( String table , String key , ColumnPath column_path , byte [ ] value , long timestamp , int consistency_level ) throws InvalidRequestException , UnavailableException { } public void batch_insert ( String table , BatchMutation batch_mutation , int consistency_level ) throws InvalidRequestException , UnavailableException { } public void remove ( String table , String key , ColumnPathOrParent column_path_or_parent , long timestamp , int consistency_level ) throws InvalidRequestException , UnavailableException { } private void doInsert ( int consistency_level , RowMutation rm ) throws UnavailableException { } public List < SuperColumn > get_slice_super_by_names ( String table , String key , String column_family , List < byte [ ] > super_column_names , int consistency_level ) throws InvalidRequestException { } private List < SuperColumn > thriftifySuperColumns ( Collection < IColumn > columns ) { } private List < SuperColumn > thriftifySuperColumns ( Collection < IColumn > columns , boolean reverseOrder ) { } public List < SuperColumn > get_slice_super ( String table , String key , String column_family , byte [ ] start , byte [ ] finish , boolean is_ascending , int count , int consistency_level ) throws InvalidRequestException { } public SuperColumn get_super_column ( String table , String key , SuperColumnPath super_column_path , int consistency_level ) throws InvalidRequestException , NotFoundException { } public void batch_insert_super_column ( String table , BatchMutationSuper batch_mutation_super , int consistency_level ) throws InvalidRequestException , UnavailableException { } public String get_string_property ( String propertyName ) { } public List < String > get_string_list_property ( String propertyName ) { } public Map < String , Map < String , String > > describe_table ( String tableName ) throws NotFoundException { } public CqlResult execute_query ( String query ) throws TException { } public List < String > get_key_range ( String tablename , String columnFamily , String startWith , String stopAt , int maxResults ) throws InvalidRequestException , TException { } }

Fix:
row = StorageProxy . readProtocol ( command , consistency_level ) ;