scan_vertex卡住

nebula:3.6.0
nebula3-python 3.4.0



from nebula3.mclient import MetaCache, HostAddr
from nebula3.sclient.GraphStorageClient import GraphStorageClient

# the metad servers's address
meta_cache = MetaCache(
    [
        ("localhost", 62031),
        ("localhost", 62032),
        ("localhost", 62033),
        ("localhost", 62034),
    ],
    50000,
)

storage_addrs = [
    HostAddr(host="localhost", port=62035),
    HostAddr(host="localhost", port=62036),
    HostAddr(host="localhost", port=62037),
    HostAddr(host="localhost", port=62038),
]
graph_storage_client = GraphStorageClient(meta_cache, storage_addrs)

resp = graph_storage_client.scan_vertex(
    space_name="dagou_graph_data_test", tag_name="apk_hash"
)
print(resp)
while resp.has_next():
    result = resp.next()
    for vertex_data in result:
        print(vertex_data)


程序卡住没有结果

在扫所有有 apk_hash 的点出来?

是的,把 apk_hash 这个点全部扫出来

不知道你上面那个统计是不是最新的,:thinking: 如果卡住了你可以先试试把 graph 里和客户端相关的超时字段都设置大点,看看是不是可以把结果返回回来。

是最新的,十几条数据不需要太久吧

加些日志 可以看看具体卡在哪里。 如果卡在resp.next,看一下storage的日志,贴出来。

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。