Buggy code:
@ PreInitializeConfigOptions public class AstyanaxStoreManager extends AbstractCassandraStoreManager { private static final Logger log = LoggerFactory . getLogger ( AstyanaxStoreManager . class ) ; public static final ConfigNamespace ASTYANAX_NS = new ConfigNamespace ( CASSANDRA_NS , "astyanax" , "Astyanax-specific<seq2seq4repair_space>Cassandra<seq2seq4repair_space>options" ) ; public static final ConfigOption < String > CLUSTER_NAME = new ConfigOption < String > ( AstyanaxStoreManager . ASTYANAX_NS , "cluster-name" , "Default<seq2seq4repair_space>name<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>Cassandra<seq2seq4repair_space>cluster" , Type . MASKABLE , "Titan<seq2seq4repair_space>Cluster" ) ; public static final ConfigOption < Integer > MAX_CONNECTIONS_PER_HOST = new ConfigOption < Integer > ( AstyanaxStoreManager . ASTYANAX_NS , "max-connections-per-host" , "Maximum<seq2seq4repair_space>pooled<seq2seq4repair_space>connections<seq2seq4repair_space>per<seq2seq4repair_space>host" , Type . MASKABLE , 32 ) ; public static final ConfigOption < Integer > MAX_CONNECTIONS = new ConfigOption < Integer > ( AstyanaxStoreManager . ASTYANAX_NS , "max-connections" , "Maximum<seq2seq4repair_space>open<seq2seq4repair_space>connections<seq2seq4repair_space>allowed<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>pool<seq2seq4repair_space>(counting<seq2seq4repair_space>all<seq2seq4repair_space>hosts)" , Type . MASKABLE , ( - 1 ) ) ; public static final ConfigOption < Integer > MAX_OPERATIONS_PER_CONNECTION = new ConfigOption < Integer > ( AstyanaxStoreManager . ASTYANAX_NS , "max-operations-per-connection" , "Maximum<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>operations<seq2seq4repair_space>allowed<seq2seq4repair_space>per<seq2seq4repair_space>connection<seq2seq4repair_space>before<seq2seq4repair_space>the<seq2seq4repair_space>connection<seq2seq4repair_space>is<seq2seq4repair_space>closed" , Type . MASKABLE , ( 100 * 1000 ) ) ; public static final ConfigOption < Integer > MAX_CLUSTER_CONNECTIONS_PER_HOST = new ConfigOption < Integer > ( AstyanaxStoreManager . ASTYANAX_NS , "max-cluster-connections-per-host" , "Maximum<seq2seq4repair_space>pooled<seq2seq4repair_space>\"cluster\"<seq2seq4repair_space>connections<seq2seq4repair_space>per<seq2seq4repair_space>host" , Type . MASKABLE , 3 ) ; public static final ConfigOption < String > NODE_DISCOVERY_TYPE = new ConfigOption < String > ( AstyanaxStoreManager . ASTYANAX_NS , "node-discovery-type" , "How<seq2seq4repair_space>Astyanax<seq2seq4repair_space>discovers<seq2seq4repair_space>Cassandra<seq2seq4repair_space>cluster<seq2seq4repair_space>nodes" , Type . MASKABLE , "RING_DESCRIBE" ) ; public static final ConfigOption < String > HOST_SUPPLIER = new ConfigOption < String > ( AstyanaxStoreManager . ASTYANAX_NS , "host-supplier" , "Host<seq2seq4repair_space>supplier<seq2seq4repair_space>to<seq2seq4repair_space>use<seq2seq4repair_space>when<seq2seq4repair_space>discovery<seq2seq4repair_space>type<seq2seq4repair_space>is<seq2seq4repair_space>set<seq2seq4repair_space>to<seq2seq4repair_space>DISCOVERY_SERVICE<seq2seq4repair_space>or<seq2seq4repair_space>TOKEN_AWARE" , Type . MASKABLE , String . class ) ; public static final ConfigOption < String > CONNECTION_POOL_TYPE = new ConfigOption < String > ( AstyanaxStoreManager . ASTYANAX_NS , "connection-pool-type" , "Astyanax's<seq2seq4repair_space>connection<seq2seq4repair_space>pooler<seq2seq4repair_space>implementation" , Type . MASKABLE , "TOKEN_AWARE" ) ; public static final ConfigOption < String > RETRY_POLICY = new ConfigOption < String > ( AstyanaxStoreManager . ASTYANAX_NS , "retry-policy" , "Astyanax's<seq2seq4repair_space>retry<seq2seq4repair_space>policy<seq2seq4repair_space>implementation<seq2seq4repair_space>with<seq2seq4repair_space>configuration<seq2seq4repair_space>parameters" , Type . MASKABLE , "com.netflix.astyanax.retry.BoundedExponentialBackoff,100,25000,8" ) ; public static final ConfigOption < String > RETRY_BACKOFF_STRATEGY = new ConfigOption < String > ( AstyanaxStoreManager . ASTYANAX_NS , "retry-backoff-strategy" , "Astyanax's<seq2seq4repair_space>retry<seq2seq4repair_space>backoff<seq2seq4repair_space>strategy<seq2seq4repair_space>with<seq2seq4repair_space>configuration<seq2seq4repair_space>parameters" , Type . MASKABLE , "com.netflix.astyanax.connectionpool.impl.FixedRetryBackoffStrategy,1000,5000" ) ; public static final ConfigOption < Integer > RETRY_DELAY_SLICE = new ConfigOption < Integer > ( AstyanaxStoreManager . ASTYANAX_NS , "retry-delay-slice" , "Astyanax\'s<seq2seq4repair_space>connection<seq2seq4repair_space>pool<seq2seq4repair_space>\"retryDelaySlice\"<seq2seq4repair_space>parameter" , Type . MASKABLE , ConnectionPoolConfigurationImpl . DEFAULT_RETRY_DELAY_SLICE ) ; public static final ConfigOption < Integer > RETRY_MAX_DELAY_SLICE = new ConfigOption < Integer > ( AstyanaxStoreManager . ASTYANAX_NS , "retry-max-delay-slice" , "Astyanax\'s<seq2seq4repair_space>connection<seq2seq4repair_space>pool<seq2seq4repair_space>\"retryMaxDelaySlice\"<seq2seq4repair_space>parameter" , Type . MASKABLE , ConnectionPoolConfigurationImpl . DEFAULT_RETRY_MAX_DELAY_SLICE ) ; public static final ConfigOption < Integer > RETRY_SUSPEND_WINDOW = new ConfigOption < Integer > ( AstyanaxStoreManager . ASTYANAX_NS , "retry-suspend-window" , "Astyanax\'s<seq2seq4repair_space>connection<seq2seq4repair_space>pool<seq2seq4repair_space>\"retryMaxDelaySlice\"<seq2seq4repair_space>parameter" , Type . MASKABLE , ConnectionPoolConfigurationImpl . DEFAULT_RETRY_SUSPEND_WINDOW ) ; private final String clusterName ; private final AstyanaxContext < Keyspace > keyspaceContext ; private final AstyanaxContext < Cluster > clusterContext ; private final RetryPolicy retryPolicy ; private final int retryDelaySlice ; private final int retryMaxDelaySlice ; private final int retrySuspendWindow ; private final RetryBackoffStrategy retryBackoffStrategy ; private final Map < String , AstyanaxKeyColumnValueStore > openStores ; public AstyanaxStoreManager ( Configuration config ) throws BackendException { } @ Override public Deployment getDeployment ( ) { } @ Override @ SuppressWarnings ( "unchecked" ) public IPartitioner < ? extends Token < ? > > getCassandraPartitioner ( ) throws BackendException { } @ Override public String toString ( ) { } @ Override public void close ( ) { } @ Override public synchronized AstyanaxKeyColumnValueStore openDatabase ( String name ) throws BackendException { } @ Override public void mutateMany ( Map < String , Map < StaticBuffer , KCVMutation > > batch , StoreTransaction txh ) throws BackendException { } @ Override public List < KeyRange > getLocalKeyPartition ( ) throws BackendException { } @ Override public void clearStorage ( ) throws BackendException { } private void ensureColumnFamilyExists ( String name ) throws BackendException { } private void ensureColumnFamilyExists ( String name , String comparator ) throws BackendException { } private static AstyanaxContext < Cluster > createCluster ( AstyanaxContext . Builder cb ) { } private Builder getContextBuilder ( Configuration config , int maxConnsPerHost , String usedFor ) { } private void ensureKeyspaceExists ( Cluster cl ) throws BackendException { KeyspaceDefinition ksDef ; try { ksDef = cl . describeKeyspace ( keySpaceName ) ; if ( ( null != ksDef ) && ( ksDef . getName ( ) . equals ( keySpaceName ) ) ) { AstyanaxStoreManager . log . debug ( "Found<seq2seq4repair_space>keyspace<seq2seq4repair_space>{}" , keySpaceName ) ; return ; } } catch ( ConnectionException e ) { AstyanaxStoreManager . log . debug ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>describe<seq2seq4repair_space>keyspace<seq2seq4repair_space>{}" , keySpaceName ) ; } AstyanaxStoreManager . log . debug ( "Creating<seq2seq4repair_space>keyspace<seq2seq4repair_space>{}..." , keySpaceName ) ; try { ksDef = cl . makeKeyspaceDefinition ( ) . setName ( keySpaceName ) . setStrategyClass ( storageConfig . get ( REPLICATION_STRATEGY ) ) . setStrategyOptions ( strategyOptions ) ; cl . addKeyspace ( ksDef ) ; AstyanaxStoreManager . log . debug ( "Created<seq2seq4repair_space>keyspace<seq2seq4repair_space>{}" , keySpaceName ) ; } catch ( ConnectionException e ) { <START_BUG> AstyanaxStoreManager . log . debug ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>create<seq2seq4repair_space>keyspace<seq2seq4repair_space>{},<seq2seq4repair_space>keySpaceName" ) ; <END_BUG> throw new com . thinkaurelius . titan . diskstorage . TemporaryBackendException ( e ) ; } } private static RetryBackoffStrategy getRetryBackoffStrategy ( String desc ) throws PermanentBackendException { } private static RetryPolicy getRetryPolicy ( String serializedRetryPolicy ) throws BackendException { } @ SuppressWarnings ( "unchecked" ) private static < V > V instantiate ( String policyClassName , Integer [ ] args , String raw ) throws Exception { } @ Override public Map < String , String > getCompressionOptions ( String cf ) throws BackendException { } }

Fix:
AstyanaxStoreManager . log . debug ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>create<seq2seq4repair_space>keyspace<seq2seq4repair_space>{}" , keySpaceName ) ;