Skip to content
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

new created tag cannot be found #340

Closed
heziai opened this issue Aug 25, 2021 · 5 comments
Closed

new created tag cannot be found #340

heziai opened this issue Aug 25, 2021 · 5 comments
Labels
type/question Type: question about the product

Comments

@heziai
Copy link
Contributor

heziai commented Aug 25, 2021

使用nebula-java创建TAG,然后马上使用另外的connection执行DESC TAG命令来查,查不到就间隔1秒后再查,但是一直查不到,是哪里有缓存? 而,一段时间后,使用其他客户端可以查到新TAG。

@wey-gu
Copy link
Contributor

wey-gu commented Aug 25, 2021

update: 创建 space,tag 等修改 meta 里的数据的操作,要等两个心跳的时间才会同步的,如果程序逻辑涉及比如创建 TAG,要 sleep 一下再操作后续的依赖前边创建、修改资源的操作。

https://docs.nebula-graph.com.cn/2.0.1/3.ngql-guide/9.space-statements/1.create-space/#_6

@heziai
Copy link
Contributor Author

heziai commented Aug 25, 2021

明白。但是等两个心跳时间,太久了,心跳时间默认10秒的话,要等上20秒。

@heziai
Copy link
Contributor Author

heziai commented Aug 26, 2021

而且,客户端一直请求DESC TAG xxx,一直获取不到,即使已经过去20秒。

@wey-gu
Copy link
Contributor

wey-gu commented Aug 26, 2021

应该是您的cluster,有一些问题了,我测试了一下,create tag 应该不需要等两个心跳,create space 才需要,您用 console 能重现同样问题吧?不是java client 特别的问题,可以来论坛把您的详细信息贴一下么?帮你troubleshoot一下。

https://discuss.nebula-graph.com.cn/

@klay-ke klay-ke changed the title 新创建的TAG一直查不到 new created tag cannot be found Sep 28, 2021
@klay-ke klay-ke added the type/question Type: question about the product label Sep 28, 2021
@Sophie-Xie
Copy link
Contributor

Closed it first, if you have some new info, you can open the issue again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

4 participants