JanusGraph graphTraversalSource.next() 抛出 java.util.NoSuchElementException

JanusGraph graphTraversalSource.next() throws java.util.NoSuchElementException

GraphTraversalSource 抛出 NoSuchElementException 当我尝试通过字符串值 id 查找边缘时,但我可以找到具有此 id 的边缘。

当我使用一个String值边id在JanusGraph中查找边时,我声明了一个GraphTraversalSource实例g,并使用了如下代码:

g.E("edge-id").next()

除了时间限制,还有其他配置会导致这样的问题吗?

这个问题来自multi-thread。 当我在一个事务中创建一些顶点,而这个事务还没有提交时,如果我在另一个事务中询问顶点,就会发生异常。