def compact(self): # Pre build 6.5.0-3524 there was no threads flag in compact. To ensure # tests run across versions, omit this flag pre this build. version, build_number = self.build.split('-') build = tuple(map(int, version.split('.'))) + (int(build_number), ) if build < (6, 5, 0, 3524): threads = None else: threads = self.test_config.backup_settings.threads snapshots = local.get_backup_snapshots(self.cluster_spec) local.compact(self.cluster_spec, snapshots, threads, self.rest.is_community(self.master_node))
def merge(self): snapshots = local.get_backup_snapshots(self.cluster_spec) local.drop_caches() # Pre build 6.5.0-3198 there was no threads flag in merge. To ensure # tests run across versions, omit this flag pre this build. version, build_number = self.build.split('-') build = tuple(map(int, version.split('.'))) + (int(build_number), ) if build < (6, 5, 0, 3198): threads = None else: threads = self.test_config.backup_settings.threads local.cbbackupmgr_merge(self.cluster_spec, snapshots, self.test_config.backup_settings.storage_type, threads)
def merge(self): snapshots = local.get_backup_snapshots(self.cluster_spec) local.drop_caches() # Pre build 6.5.0-3198 there was no threads flag in merge. To ensure # tests run across versions, omit this flag pre this build. version, build_number = self.build.split('-') build = tuple(map(int, version.split('.'))) + (int(build_number),) if build < (6, 5, 0, 3198): threads = None else: threads = self.test_config.backup_settings.threads local.cbbackupmgr_merge(self.cluster_spec, snapshots, self.test_config.backup_settings.storage_type, threads)
def backup_list(self): snapshots = local.get_backup_snapshots(self.cluster_spec) local.cbbackupmgr_list(cluster_spec=self.cluster_spec, snapshots=snapshots)
def compact(self): snapshots = local.get_backup_snapshots(self.cluster_spec) local.compact(self.cluster_spec, snapshots, self.rest.is_community(self.master_node))
def merge(self): snapshots = local.get_backup_snapshots(self.cluster_spec) local.drop_caches() local.cbbackupmgr_merge(self.cluster_spec, snapshots)
def backup_list(self): snapshots = local.get_backup_snapshots(self.cluster_spec) local.cbbackupmgr_list(cluster_spec=self.cluster_spec, snapshots=snapshots)
def compact(self): snapshots = local.get_backup_snapshots(self.cluster_spec) local.compact(self.cluster_spec, snapshots, self.rest.is_community(self.master_node) )