Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTiFlashReplicationAndWaitToComplete ¶
func CreateTiFlashReplicationAndWaitToComplete(a *TiFlashAction, db, table string, replicaCount int, timeout time.Duration) error
CreateTiFlashReplicationAndWaitToComplete create TiFlash replication and wait it to complete.
TODO: support to set replica to 0.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database is a wrapper of sql.DB in order to provide some common fuction for test.
func NewDatabase ¶
func NewDatabaseOrDie ¶
func (*Database) QueryInSession ¶
QueryInSession creates a new session and call the query function.
func (*Database) TiFlashAction ¶
func (d *Database) TiFlashAction() *TiFlashAction
TiFlashAction create a TiFlashAction
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
type TiFlashAction ¶
type TiFlashAction struct {
// contains filtered or unexported fields
}
func (*TiFlashAction) CreateReplicas ¶
func (a *TiFlashAction) CreateReplicas(db, table string, count int) error
CreateReplicas create TiFLash replicas for a table
func (*TiFlashAction) QueryReplication ¶
func (a *TiFlashAction) QueryReplication(db, table string) (*TiFlashReplication, error)
QueryReplication query replication progress
type TiFlashReplication ¶
func (TiFlashReplication) IsAvailable ¶
func (r TiFlashReplication) IsAvailable() bool
func (TiFlashReplication) IsComplete ¶
func (r TiFlashReplication) IsComplete() bool
Click to show internal directories.
Click to hide internal directories.