@@ -0,0 +1,1274 @@
+from dtest import Tester%0Afrom assertions import *%0Afrom tools import *%0Aimport time%0A%0Aclass TestSchema(Tester):%0A%0A    def remove_columndef_test(self):%0A        %22%22%22 Remove a column definition while a node is dead %22%22%22%0A%0A        cluster = self.cluster%0A        cluster.populate(2).start()%0A        nodes = cluster.nodelist()%0A        time.sleep(.3)%0A%0A        cursor = self.cql_connection(nodes%5B0%5D).cursor()%0A        self.create_ks(cursor, 'ks', 3)%0A%0A        cursor.execute(%22%22%22%0A            CREATE TABLE cf (%0A                key int PRIMARY KEY,%0A                c1 int,%0A                c2 int%0A            )%0A        %22%22%22)%0A%0A        # Shutdown a node and do an update%0A        nodes%5B1%5D.stop()%0A        cursor.execute(%22ALTER TABLE cf DROP c2%22)%0A        nodes%5B0%5D.compact() # compact the schema CF%0A        time.sleep(.5)%0A%0A        # Restart the dead node and do a new (trivial) update to make sure the%0A        # schema are in agreement%0A        nodes%5B1%5D.start()%0A        time.sleep(.5)%0A        cursor.execute(%22ALTER TABLE cf ADD c3 int%22)%0A%0A        # Check the schema don't reference c2 anymore%0A        # (use the cli to be compatible with 1.0)%0A        cli = nodes%5B0%5D.cli()%0A        cli.do(%22use ks%22)%0A        cli.do(%22describe ks%22)%0A        assert %22Column Name: c2%22 not in cli.last_output(), cli.last_output()%0A

Add test schema deletion bug