title: Creating new table with cqlsh on existing keyspace: Column family ID mismatch
body: <p>Houston, we have a problem.</p>
  
  <p>Trying to create a new table with <code>cqlsh</code> on an existing Cassandra (v2.1.3) keyspace results in:</p>
  
  <pre><code>ServerError: 
  &lt;ErrorMessage code=0000 [Server error] message="java.lang.RuntimeException:
  java.util.concurrent.ExecutionException: 
      java.lang.RuntimeException:      
          org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found e8c03790-c952-11e4-a753-5981ea73cd7c; expected e8b14370-c952-11e4-a844-8f10bfb9c386)"&gt;
  </code></pre>
  
  <p>After the first create attempt, trying once more will result in:</p>
  
  <p>AlreadyExists: Table 'ks.metrics' already exists</p>
  
  <p>But retrieving the list of existing tables for the keyspace <code>desc tables;</code> will not report the new table.</p>
  
  <p>The issue seems related to  <a href="https://issues.apache.org/jira/browse/CASSANDRA-8387" rel="noreferrer">Cassandra-8387</a> except that there's only one client trying to create the table: <code>cqlsh</code></p>
  
  <p>We do have a bunch of Spark jobs that will create the keyspaces and tables at startup, potentially doing this in parallel. Would this render the keyspace corrupt?</p>
  
  <p>Creating a new keyspace and adding a table to it works as expected.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Found a workaround: issue a repair on the keyspace and the tables will appear (<code>desc tables</code>) and are also functional.</p>