vtctlbackup

package
v0.16.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XtraBackup = iota
	Backup
	Mysqlctld
)

constants for test variants

Variables

This section is empty.

Functions

func GetReplicaGtidPurged added in v0.16.0

func GetReplicaGtidPurged(t *testing.T) string

func GetReplicaPosition added in v0.16.0

func GetReplicaPosition(t *testing.T) string

func InitTestTable added in v0.16.0

func InitTestTable(t *testing.T)

func InsertRowOnPrimary added in v0.16.0

func InsertRowOnPrimary(t *testing.T, hint string)

func LaunchCluster

func LaunchCluster(setupType int, streamMode string, stripes int, cDetails *CompressionDetails) (int, error)

LaunchCluster : starts the cluster as per given params.

func ReadRowsFromPrimary added in v0.16.0

func ReadRowsFromPrimary(t *testing.T) (msgs []string)

func ReadRowsFromReplica added in v0.16.0

func ReadRowsFromReplica(t *testing.T) (msgs []string)

func ReadRowsFromTablet added in v0.16.0

func ReadRowsFromTablet(t *testing.T, tablet *cluster.Vttablet) (msgs []string)

func RemoveBackup added in v0.16.0

func RemoveBackup(t *testing.T, backupName string)

func TearDownCluster

func TearDownCluster()

TearDownCluster shuts down all cluster processes

func TestBackup

func TestBackup(t *testing.T, setupType int, streamMode string, stripes int, cDetails *CompressionDetails, runSpecific []string) error

TestBackup runs all the backup tests

func TestReplicaFullBackup added in v0.16.0

func TestReplicaFullBackup(t *testing.T) (manifest *mysqlctl.BackupManifest, destroy func(t *testing.T))

func TestReplicaIncrementalBackup added in v0.16.0

func TestReplicaIncrementalBackup(t *testing.T, incrementalFromPos mysql.Position, expectError string) (manifest *mysqlctl.BackupManifest, backupName string)

func TestReplicaRestoreToPos added in v0.16.0

func TestReplicaRestoreToPos(t *testing.T, restoreToPos mysql.Position, expectError string)

Types

type CompressionDetails added in v0.15.0

type CompressionDetails struct {
	CompressorEngineName    string
	ExternalCompressorCmd   string
	ExternalCompressorExt   string
	ExternalDecompressorCmd string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL