Skip to content
Permalink
Browse files
Disable autocompaction during snapshot test
Patch by brandonwilliams; reviewed by mck for CASSANDRA-16441
  • Loading branch information
driftx committed Feb 25, 2021
1 parent c89dea0 commit da9a8ba4bf86a1d833b12f52b6a38f89cc77bcc4
Showing 1 changed file with 2 additions and 0 deletions.
@@ -33,6 +33,7 @@ def insert_rows(self, session, start, end):

def make_snapshot(self, node, ks, cf, name):
logger.debug("Making snapshot....")
node.nodetool('disableautocompaction')
node.flush()
snapshot_cmd = 'snapshot {ks} -cf {cf} -t {name}'.format(ks=ks, cf=cf, name=name)
logger.debug("Running snapshot cmd: {snapshot_cmd}".format(snapshot_cmd=snapshot_cmd))
@@ -200,6 +201,7 @@ def fixture_dtest_setup_overrides(self, dtest_config):

def make_snapshot(self, node, ks, cf, name):
logger.debug("Making snapshot....")
node.nodetool('disableautocompaction')
node.flush()
snapshot_cmd = 'snapshot {ks} -cf {cf} -t {name}'.format(ks=ks, cf=cf, name=name)
logger.debug("Running snapshot cmd: {snapshot_cmd}".format(snapshot_cmd=snapshot_cmd))

0 comments on commit da9a8ba

Please sign in to comment.