why saveNewKeyspace()
locks keyspace.Id,
not keyspace.Name
?
#8206
Labels
type/question
The issue belongs to a question.
https://github.com/tikv/pd/blob/2fabb74157938ced112b1d768cb8d4b995653275/pkg/keyspace/keyspace.go#L271C2-L271C36
if several clients call
CreateKeyspace
, functionsaveNewKeyspace
locks by Id which is created bymanager.allocID()
,etcd transaction failed, conflicted and rolled back
error may be happened as Ids are allocated saperatelyThe text was updated successfully, but these errors were encountered: