Пример #1
0
    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))
Пример #2
0
    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)
Пример #3
0
    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)
Пример #4
0
 def backup_list(self):
     snapshots = local.get_backup_snapshots(self.cluster_spec)
     local.cbbackupmgr_list(cluster_spec=self.cluster_spec,
                            snapshots=snapshots)
Пример #5
0
 def compact(self):
     snapshots = local.get_backup_snapshots(self.cluster_spec)
     local.compact(self.cluster_spec, snapshots,
                   self.rest.is_community(self.master_node))
Пример #6
0
    def merge(self):
        snapshots = local.get_backup_snapshots(self.cluster_spec)

        local.drop_caches()

        local.cbbackupmgr_merge(self.cluster_spec, snapshots)
Пример #7
0
 def backup_list(self):
     snapshots = local.get_backup_snapshots(self.cluster_spec)
     local.cbbackupmgr_list(cluster_spec=self.cluster_spec,
                            snapshots=snapshots)
Пример #8
0
 def compact(self):
     snapshots = local.get_backup_snapshots(self.cluster_spec)
     local.compact(self.cluster_spec,
                   snapshots,
                   self.rest.is_community(self.master_node)
                   )