* tests: improve tests for Windows platform
* fix race build
* update badger to fix kill issue on Windows
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
* ddl: check count here
* ddl: drop all rules that will be overrided
* ddl: change ID format
* ddl: local placement deifinition
* ddl: support `ALTER PLACEMENT` clause
* ddl: add test cases
* ddl: fix ID format
* ddl: copy comments too
* ddl: allow ignore replicas with dict constraints
* ddl: rename COUNT to REPLICAS
* ddl: clone method for RuleOp
* ddl: checkPlacementSpec => buildPlacementSpec
* ddl: remove TODO
It is possible to incrementally add replicas. Consider drop later. Let
us support it correctly first.
* ddl: ID format
Datbase/schema ID is added back. A common prefix will improve the
efficience of PD batch operation. Drop a whole db/table will only need
one loop for rules.
* ddl: move const/util to placement package
* ddl: fix test
* ddl: fix format error
* ddl: error check fix
* ddl: use an explicit condition flag
* ddl: adapt parser changes
* ddl: fix go.mod/simplify code path
* ddl: go mod tidy
* ddl: improve tests
* ddl: return new rules instead of appending
* ddl: return constraints instead of appending
* ddl: fix test
* ddl: one more test
* ddl: remove rules rollback, meaningless
* ddl: fix slice
* ddl: add period to comments
* Update ddl/ddl_api.go
Co-authored-by: tangenta <tangenta@126.com>
* ddl: remove unused arguments
* infosync: do not request PD if no ruleOperations
* ddl: a new test suite
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
* domain,session: add NoRegister entry
* session: run fmt
* session: remove old NoRegister API
* config: add no register config
* config: add example to example config file.
* session: remove unused type
* *: rename NoRegister to SkipRegisterToDashboard
Co-authored-by: crazycs <crazycs520@gmail.com>
* record action types in schema change history
* change comments
* remove comment
* refactor, remove some params and return values
* change value to pointer, remove useless comments
* refactor comments
* change return value
* refactor
* remove all info
* fix action type append
* update comment
Co-authored-by: Lynn <zimu_xia@126.com>