title: How to resolve schema mismatch following ALTER TABLE?
body: <p>I ran this command in cqlsh (in 10-node production cluster running Cassandra 2.1.2):</p>
  
  <pre><code>cqlsh:aisdata&gt; alter table packets_area_cell10 with compression = { 'sstable_compression' : 'DeflateCompressor', 'chunk_length_kb' : 1024 };
  errors={}, last_host=127.0.0.1
  </code></pre>
  
  <p>The 'alter table' commands seem to have run despite the timeout. </p>
  
  <p>But subsequently cqlsh ran into (<a href="https://issues.apache.org/jira/browse/CASSANDRA-8512" rel="nofollow">https://issues.apache.org/jira/browse/CASSANDRA-8512</a>) - and was rendered virtually unusable until the patch mentioned in CASSANDRA-8512 was applied. </p>
  
  <p>So, how are they underlying schema mismatches in Cassandra resolved; so that e.g. cqlsh can run again? </p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <pre><code>cqlsh&gt; select release_version, host_id, schema_version from system.local;
  
   release_version | host_id                              | schema_version
  -----------------+--------------------------------------+--------------------------------------
             2.1.2 | 15bb29cd-1c3c-43c9-ac82-e27d0b236066 | 489c8f81-4346-3bbe-afb9-bd998302d3a3
  
  (1 rows)
  cqlsh&gt; select peer, release_version, host_id, schema_version from system.peers;
  
   peer        | release_version | host_id                              | schema_version
  -------------+-----------------+--------------------------------------+--------------------------------------
   10.51.78.29 |           2.1.2 | de10ceb6-3fc1-4739-9d40-66a5ac510eeb | 22e8d11f-4c62-362f-8706-bf694c1a95dd
   10.51.78.27 |           2.1.2 | 6b165d96-5425-4e24-9e9d-d59bfab729fd | 489c8f81-4346-3bbe-afb9-bd998302d3a3
   10.51.78.20 |           2.1.2 | 6114a6bf-e3cf-4bce-b423-5d2c3976afc8 | 489c8f81-4346-3bbe-afb9-bd998302d3a3
   10.51.78.57 |           2.1.2 | 59ed0b67-6c45-48de-8755-ad8c7770f0ff | 489c8f81-4346-3bbe-afb9-bd998302d3a3
   10.51.78.59 |           2.1.2 | 00254eef-7b21-4f3a-9c18-159d4c1d4d73 | 489c8f81-4346-3bbe-afb9-bd998302d3a3
   10.51.78.58 |           2.1.2 | 90ccccdf-22b5-4eb3-99a6-5b880c5f5ebf | 489c8f81-4346-3bbe-afb9-bd998302d3a3
   10.51.78.14 |           2.1.2 | 60393d6d-fcb8-42ec-ba40-e34ec8d4ec69 | 489c8f81-4346-3bbe-afb9-bd998302d3a3
   10.51.78.56 |           2.1.2 | 5b82e847-7c8c-4b22-bc54-2fece674c8fa | 489c8f81-4346-3bbe-afb9-bd998302d3a3
   10.51.78.26 |           2.1.2 | a4d2d02b-74e6-4ab1-b610-efdf58f7c918 | 489c8f81-4346-3bbe-afb9-bd998302d3a3
  </code></pre>