Skip to content

Namespace记录重复 #3838

Answered by Anilople
jiangt22 asked this question in Q&A
Jul 23, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

从admin-service的源码来看

https://github.com/ctripcorp/apollo/blob/f9c69dbb181e9cb6c5cb0ee08ae915a52430c23a/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/NamespaceController.java#L47-L56

并发场景下,确实有可能创建出2个同名的namespace,因为只是单机的如果不存在才添加

分布式场景或者并发场景下,是可能会出现这个问题的

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nobodyiam
Comment options

Answer selected by Anilople
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants