pingcap / pingcap/tidb

keyspace: add UT for auto id keyspace test case

Open
#58,210 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
keyspace: add UT for auto id keyspace test case

In the TestAPI, when it is necessary to send an autoid.AutoIDRequest:

1. Non-keyspace scenario: KeyspaceID: uint32(tikv.NullspaceID)
2. Keyspace scenario: Construct the store through keyspaceMeta, and pass keyspaceMeta.Id in the AutoIDRequest. The service side will check whether the keyspace ID in the store is consistent with the one in the request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.