110
111
if !applied {
112
>
// if the id with the same name exists in `namespaces_by_id`, fall through and either add a row in `namespaces` table
metadata_store.go
113
>
// or fail if name exists in that table already. This is to make sure we do not end up with a row in `namespaces_by_id`
114
>
// table and no entry in `namespaces` table
115
>
matched, err := hasNameConflict(existingRow, "name", request.Name)
116
>
if err != nil {
117
return nil, err
118
}
120
msg := fmt.Sprintf("CreateNamespace with name %v and id %v failed because another namespace with name %v already exists with the same id.", request.Name, request.ID, existingRow["name"])
121
return nil, serviceerror.NewNamespaceAlreadyExists(msg)