initialsharding

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClusterInstance instance to be used for test with different params
	ClusterInstance *cluster.LocalProcessCluster
)

Functions

func AssignMysqlPortFromKs1ToKs2

func AssignMysqlPortFromKs1ToKs2()

AssignMysqlPortFromKs1ToKs2 assigns mysql port of all tablets of ks1 to all corresponding tablets of ks2

func ClusterWrapper

func ClusterWrapper(isMulti bool) (int, error)

ClusterWrapper common wrapper code for cluster

func GetPasswordUpdateSQL

func GetPasswordUpdateSQL() string

GetPasswordUpdateSQL returns the sql for password update

func KillTabletsInKeyspace

func KillTabletsInKeyspace(keyspace *cluster.Keyspace)

KillTabletsInKeyspace kill the first shard tablets in ordered way

func KillVtgateInstances

func KillVtgateInstances()

KillVtgateInstances stops the vtgate process

func TestInitialSharding

func TestInitialSharding(t *testing.T, keyspace *cluster.Keyspace, keyType querypb.Type, isMulti bool, isExternal bool)

TestInitialSharding - main test which accepts different params for various test

func WriteDbCredentialToTmp

func WriteDbCredentialToTmp(tmpDir string) string

WriteDbCredentialToTmp writes json format db credentials to tmp directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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