-
Notifications
You must be signed in to change notification settings - Fork 122
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
On StorageClient close, should also release meta client. #344
Conversation
Thanks for your contribution.
|
If users use StorageClient and MetaManager at the same time, close StorageClient maybe has problem, as users don't want to close MetaManager. |
If users use both StorageClient and MetaManager, then close it after both finished. |
Actually, in my projects, there are multi nebula clusters, in one java process, will connect multi clusters, include gragh、storage、meta, but now, the |
Users don't know all about this easily. The core problem is, |
Can you use MetaClient to get schema information in your application? Your point is right, Maybe we should guide users to use MetaClient, and as MetaManager an internal tool. |
For now, haven't use MetaClient, but use StorageClient, and need connect multi clusters. |
Will this PR be merged? If not, how to intend to satisfy the needs of |
Yes, your solution is reasonable, we will merge it after rerunning the build process. Thanks for your contribution again. |
If User just use StorageClient, don't use MetaManager, When close StorageClient, then meta client is leaked, and in general, user don't know to use
MetaManager.getMetaManager(address).close()
to release meta client.In my opinion, because MetaManager is a single instance, it should be just used at StorageClient, should be moved to storage package. If not, it shouldn't be single instance.