utils

package
v0.0.0-...-3917c36 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMultiKeyspacesTSO

func CheckMultiKeyspacesTSO(
	ctx context.Context, as *assert.Assertions,
	clients []pd.Client, parallelAct func(),
)

CheckMultiKeyspacesTSO checks the correctness of TSO for multiple keyspaces.

func SetupClientWithAPIContext

func SetupClientWithAPIContext(
	ctx context.Context, re *require.Assertions, apiCtx pd.APIContext, endpoints []string, opts ...opt.ClientOption,
) pd.Client

SetupClientWithAPIContext creates a TSO client with api context name for test.

func SetupClientWithKeyspaceID

func SetupClientWithKeyspaceID(
	ctx context.Context, re *require.Assertions,
	keyspaceID uint32, endpoints []string, opts ...opt.ClientOption,
) pd.Client

SetupClientWithKeyspaceID creates a TSO client with the given keyspace id for test.

func WaitForAllTSOServiceAvailable

func WaitForAllTSOServiceAvailable(
	ctx context.Context, re *require.Assertions, clients []pd.Client,
)

WaitForAllTSOServiceAvailable waits for all clients to be served by the tso server side.

func WaitForMultiKeyspacesTSOAvailable

func WaitForMultiKeyspacesTSOAvailable(
	ctx context.Context, re *require.Assertions,
	keyspaceIDs []uint32, backendEndpoints []string,
) []pd.Client

WaitForMultiKeyspacesTSOAvailable waits for the given keyspaces being served by the tso server side

func WaitForTSOServiceAvailable

func WaitForTSOServiceAvailable(
	ctx context.Context, re *require.Assertions, client pd.Client,
)

WaitForTSOServiceAvailable waits for the pd client being served by the tso server side

Types

This section is empty.

Jump to

Keyboard shortcuts

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