Buggy code:
public class CassandraServer implements Cassandra . Iface { private static Logger logger = LoggerFactory . getLogger ( CassandraServer . class ) ; private static final List < ColumnOrSuperColumn > EMPTY_COLUMNS = Collections . emptyList ( ) ; private static final List < Column > EMPTY_SUBCOLUMNS = Collections . emptyList ( ) ; public final ClientState clientState = new ClientState ( ) ; private final IRequestScheduler requestScheduler ; private final StorageService storageService ; public CassandraServer ( ) { } protected Map < DecoratedKey , ColumnFamily > readColumnFamily ( List < ReadCommand > commands , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public List < Column > thriftifySubColumns ( Collection < IColumn > columns ) { } public List < ColumnOrSuperColumn > thriftifyColumns ( Collection < IColumn > columns , boolean reverseOrder ) { } private List < ColumnOrSuperColumn > thriftifySuperColumns ( Collection < IColumn > columns , boolean reverseOrder ) { } private static long thriftifyIClock ( IClock clock ) { } private Map < byte [ ] , 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 ( byte [ ] key , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public Map < byte [ ] , List < ColumnOrSuperColumn > > multiget_slice ( List < byte [ ] > keys , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private Map < byte [ ] , List < ColumnOrSuperColumn > > multigetSliceInternal ( String keyspace , List < byte [ ] > keys , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public ColumnOrSuperColumn get ( byte [ ] key , ColumnPath column_path , ConsistencyLevel consistency_level ) throws InvalidRequestException , NotFoundException , TimedOutException , UnavailableException { } public int get_count ( byte [ ] key , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public Map < byte [ ] , Integer > multiget_count ( List < byte [ ] > keys , ColumnParent column_parent , SlicePredicate predicate , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public void insert ( byte [ ] key , ColumnParent column_parent , Column column , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public void batch_mutate ( Map < byte [ ] , Map < String , List < Mutation > > > mutation_map , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } public void remove ( byte [ ] key , ColumnPath column_path , long clock , ConsistencyLevel consistency_level ) throws InvalidRequestException , TimedOutException , UnavailableException { } private void doInsert ( ConsistencyLevel consistency_level , List < RowMutation > mutations ) throws TimedOutException , UnavailableException { } public KsDef describe_keyspace ( String table ) throws 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 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 List < String > describe_splits ( String cfName , String start_token , String end_token , int keys_per_split ) throws TException { } public void login ( AuthenticationRequest auth_request ) throws AuthenticationException , AuthorizationException , TException { } private void schedule ( ) { <START_BUG> requestScheduler . queue ( Thread . currentThread ( ) , clientState . getSchedulingId ( ) ) ; <END_BUG> } private void release ( ) { } private static void applyMigrationOnStage ( final Migration m ) throws InvalidRequestException { } public String system_add_column_family ( CfDef cf_def ) throws InvalidRequestException , TException { } public String system_drop_column_family ( String column_family ) throws InvalidRequestException , TException { } public String system_rename_column_family ( String old_name , String new_name ) throws InvalidRequestException , TException { } public String system_add_keyspace ( KsDef ks_def ) throws InvalidRequestException , TException { } public String system_drop_keyspace ( String keyspace ) throws InvalidRequestException , TException { } public String system_rename_keyspace ( String old_name , String new_name ) throws InvalidRequestException , TException { } public String system_update_keyspace ( KsDef ks_def ) throws InvalidRequestException , TException { } public String system_update_column_family ( CfDef cf_def ) throws InvalidRequestException , TException { } private CFMetaData convertToCFMetaData ( CfDef cf_def ) throws ConfigurationException , InvalidRequestException { } public void truncate ( String cfname ) throws InvalidRequestException , UnavailableException , TException { } public void set_keyspace ( String keyspace ) throws InvalidRequestException , TException { } public Map < String , List < String > > describe_schema_versions ( ) throws InvalidRequestException , TException { } }

Fix:
requestScheduler . queue ( Thread . currentThread ( ) , clientState . getSchedulingValue ( ) ) ;