def test_compaction_not_altered_without_changes_sizetiered(self): class SizeTieredCompactionChangesDetectionTest(Model): __options__ = { "compaction": { "class": ("org.apache.cassandra.db.compaction." "SizeTieredCompactionStrategy"), "bucket_high": "20", "bucket_low": "10", "max_threshold": "200", "min_threshold": "100", "min_sstable_size": "1000", "tombstone_threshold": "0.125", "tombstone_compaction_interval": "3600", } } pk = columns.Integer(primary_key=True) drop_table(self.conn, SizeTieredCompactionChangesDetectionTest) sync_table(self.conn, SizeTieredCompactionChangesDetectionTest) self.assertFalse( _update_options(self.conn, SizeTieredCompactionChangesDetectionTest))
def test_compaction_not_altered_without_changes_sizetiered(self): class SizeTieredCompactionChangesDetectionTest(Model): __options__ = { 'compaction': { 'class': ('org.apache.cassandra.db.compaction.' 'SizeTieredCompactionStrategy'), 'bucket_high': '20', 'bucket_low': '10', 'max_threshold': '200', 'min_threshold': '100', 'min_sstable_size': '1000', 'tombstone_threshold': '0.125', 'tombstone_compaction_interval': '3600', }, } pk = columns.Integer(primary_key=True) drop_table(self.conn, SizeTieredCompactionChangesDetectionTest) sync_table(self.conn, SizeTieredCompactionChangesDetectionTest) self.assertFalse( _update_options( self.conn, SizeTieredCompactionChangesDetectionTest, ))
def test_compaction_not_altered_without_changes_leveled(self): class LeveledCompactionChangesDetectionTest(Model): __options__ = { 'compaction': { 'class': ( 'org.apache.cassandra.db.compaction.' 'LeveledCompactionStrategy' ), 'sstable_size_in_mb': '160', 'tombstone_threshold': '0.125', 'tombstone_compaction_interval': '3600', }, } pk = columns.Integer(primary_key=True) drop_table(self.conn, LeveledCompactionChangesDetectionTest) sync_table(self.conn, LeveledCompactionChangesDetectionTest) self.assertFalse( _update_options( self.conn, LeveledCompactionChangesDetectionTest ) )
def test_compaction_not_altered_without_changes_leveled(self): class LeveledCompactionChangesDetectionTest(Model): __options__ = { "compaction": { "class": ("org.apache.cassandra.db.compaction." "LeveledCompactionStrategy"), "sstable_size_in_mb": "160", "tombstone_threshold": "0.125", "tombstone_compaction_interval": "3600", } } pk = columns.Integer(primary_key=True) drop_table(self.conn, LeveledCompactionChangesDetectionTest) sync_table(self.conn, LeveledCompactionChangesDetectionTest) self.assertFalse( _update_options(self.conn, LeveledCompactionChangesDetectionTest))