-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apollo删除某个私有namespace之后,再创建同名的namespace会提示该名称的namespace已存在 #5076
Comments
🤖 你好,@guofuzheng!我是Dosu,一个可以帮助你解决bugs,回答问题并成为贡献者的机器人。在等待人类维护者的同时,我在这里为你提供帮助。让我们一起解决你的问题吧! 在Apollo中,如果你删除了一个私有的namespace,然后试图创建一个同名的namespace,但是系统提示该名称的namespace已经存在,这可能是因为在删除namespace时,它并没有从数据库中完全删除,而是将其标记为已删除。 你可以通过以下步骤来解决这个问题:
Namespace deletedNamespace = namespaceService.findOne(appId, clusterName, namespaceName);
deletedNamespace.setDeleted(false);
namespaceService.update(deletedNamespace); 请注意,这些代码需要在一个事务中执行,以确保数据的一致性。同时,你需要确保你有足够的权限来执行这些操作。 这个解决方案是基于我在Apollo的代码库中对删除namespace的过程的理解。在 如果你需要更多的帮助,或者有其他的问题,欢迎随时向我提问。 Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
如标题所述,apollo删除某个私有namespace之后,再创建同名的namespace会提示该名称的namespace已存在,这个问题该怎么处理呢?
The text was updated successfully, but these errors were encountered: