Indexing JanusGraph:索引verticesIndex上的某些键当前没有注册状态

Indexing JanusGraph:索引verticesIndex上的某些键当前没有注册状态,indexing,mixed,janusgraph,Indexing,Mixed,Janusgraph,在构建JanusGraph混合索引时,我有一些问题。 这是我的代码: mgmt = graph.openManagement(); idx = mgmt.getGraphIndex('zhh1_index'); prop = mgmt.getPropertyKey('zhang'); mgmt.addIndexKey(idx, prop); prop = mgmt.getPropertyKey('uri'); mgmt.addIndexKey(idx, prop); prop = mgmt.ge

在构建JanusGraph混合索引时,我有一些问题。 这是我的代码:

mgmt = graph.openManagement();
idx = mgmt.getGraphIndex('zhh1_index');
prop = mgmt.getPropertyKey('zhang');
mgmt.addIndexKey(idx, prop);
prop = mgmt.getPropertyKey('uri');
mgmt.addIndexKey(idx, prop);
prop = mgmt.getPropertyKey('age');
mgmt.addIndexKey(idx, prop);
mgmt.commit();
mgmt.awaitGraphIndexStatus(graph, 'zhh1_index').status(SchemaStatus.REGISTERED).call();
mgmt = graph.openManagement();
mgmt.updateIndex(mgmt.getGraphIndex('zhh1_index'),SchemaAction.ENABLE_INDEX).get();
mgmt.commit();
vertex2=graph.addVertex(label,'zhh1');
vertex2.property('zhang','male');
vertex2.property('uri','/zhh1/zhanghh');
vertex2.property('age','18');
vertex3=graph.addVertex(label,'zhh1');
vertex3.property('zhang','male');
vertex3.property('uri','/zhh1/zhangheng');
当程序执行这一行时:

mgmt.awaitGraphIndexStatus(graph, 'zhh1_index').status(SchemaStatus.REGISTERED).call();
日志会打印这些信息(大约30秒后,出现如下异常:睡眠被中断):

GraphIndexStatusReport[success=false,indexName='zhh1_index',targetStatus=ENABLED,notConverged={jiyq=INSTALLED,zhang=INSTALLED,uri=INSTALLED,age=INSTALLED},converged={},Approved=PT1M0.096S]

我对此感到很困惑! 它一直在打印我所有的索引。我做错什么了吗?如何避免这样的信息? 当我单独执行以下语句时,会报告以下异常:

异常:java.util.concurrent.ExecutionException: mgmt.updateIndex(mgmt.getGraphIndex('zhh1_index'),SchemaAction.ENABLE_index.get(); org.apache.tinkerpop.gremlin.driver.exception.ResponseException:无法对null对象调用方法get()


您什么时候构建MixedIndex()?
可能需要重新编制索引程序。

您的索引似乎卡在
已安装的状态,这可能是由于以下原因造成的:请查看我的答案,特别是项目符号2、3和5

这个mixedIndex以前有bean构建,当我尝试构建一个新的mixedIndex时,这个问题会再次出现