adminpause

package
v1.1.0-beta.0...-e54cc5b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AgeMax int = 120

AgeMax limits the max number of tuple generated for t_user.age

Variables

View Source
var Logger = logutil.DDLLogger()

Logger is the global logger in this package

Functions

This section is empty.

Types

type StmtCase

type StmtCase struct {
	// contains filtered or unexported fields
}

StmtCase is a description of all kinds of DDL statements

DDL case may be referenced for more than one test cases, before which `AdminPauseTestTable` should have been created.

Definitions:

  • `globalID` indicates the sequence number among all cases, even in different case array
  • `stmt` is normally the case you care
  • `jobState`, refer to model.SchemaState, the target state of the DDL which we want to pause
  • `isJobPausable` indicates that the `admin pause` should return true within certain `StmtCase` object
  • `preConditionStmts` should always be run before all kinds cases, to satify the requirement of `stmt`
  • `rollbackStmts` should be run if necessary to clean the object created by the 'preConditionStmts' or `stmt`, no matter what is the result of `stmt`

type TestTableUser

type TestTableUser struct {
	// contains filtered or unexported fields
}

TestTableUser indicates the columns of table `t_user` to generate tuples

Jump to

Keyboard shortcuts

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