SharonIV0x86 commented on PR #274: URL: https://github.com/apache/kvrocks-controller/pull/274#issuecomment-2720052162
> @Jitmisra Kvrocks's controller has the namespace mechanism for managing clusters like the dir in FS, and it will be used as the prefix when storing the cluster information. > > for example, if a cluster `hello` is under the namespace `A`, then the key of the cluster would be something like `/kvrocks/metadata/A/hello`. So it cannot simply change the namespace name, if it has any clusters. It seems like renaming a namespace in Kvrocks is not straightforward because the namespace is embedded in the key paths. Changing the namespace would require updating all related keys, which is a complex operation and not directly supported. When you mentioned that we _cannot simply change the namespace name, if it has any clusters_ how about a workaround, that when renaming a namespace a new namespace is created and all the clusters in the older namespace are copied/moved to the new one, and the older namespace is removed. This is an expensive workaround just to rename a namespace, a better solution is to be mindful during naming πΆβπ«οΈ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
