recovery

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// UseXb flag to use extra backup for recovery teseting.
	UseXb = false
	// XbArgs are the arguments for specifying xtrabackup.
	XbArgs = []string{
		"--backup_engine_implementation", "xtrabackup",
		"--xtrabackup_stream_mode=xbstream",
		"--xtrabackup_user=vt_dba",
		"--xtrabackup_backup_flags", fmt.Sprintf("--password=%s", dbPassword),
	}
)

Functions

func InsertData

func InsertData(t *testing.T, tablet *cluster.Vttablet, index int, keyspaceName string)

InsertData inserts data.

func RestoreTablet

func RestoreTablet(t *testing.T, localCluster *cluster.LocalProcessCluster, tablet *cluster.Vttablet, restoreKSName string, shardName string, keyspaceName string, commonTabletArg []string, restoreTime time.Time)

RestoreTablet performs a PITR restore.

func VerifyQueriesUsingVtgate

func VerifyQueriesUsingVtgate(t *testing.T, session *vtgateconn.VTGateSession, query string, value string)

VerifyQueriesUsingVtgate verifies queries using vtgate.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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