mrat85
mrat85
JJanusGraph
Created by mrat85 on 8/30/2024 in #questions
Edge Index stuck at Installed
I have a Janusgraph instance running 1.0.0 with scylladb storage and Elastic indexing. I am trying to follow the example for creating an index on one of my edges:
graph.tx().rollback() //Never create new indexes while a transaction is active
mgmt = graph.openManagement()
time = mgmt.getPropertyKey('time')
battled = mgmt.getEdgeLabel('battled')
mgmt.buildEdgeIndex(battled, 'battlesByTime', Direction.BOTH, Order.desc, time)
mgmt.commit()
//Wait for the index to become available
ManagementSystem.awaitRelationIndexStatus(graph, 'battlesByTime', 'battled').call()
//Reindex the existing data
mgmt = graph.openManagement()
mgmt.updateIndex(mgmt.getRelationIndex(battled, "battlesByTime"), SchemaAction.REINDEX).get()
mgmt.commit()
graph.tx().rollback() //Never create new indexes while a transaction is active
mgmt = graph.openManagement()
time = mgmt.getPropertyKey('time')
battled = mgmt.getEdgeLabel('battled')
mgmt.buildEdgeIndex(battled, 'battlesByTime', Direction.BOTH, Order.desc, time)
mgmt.commit()
//Wait for the index to become available
ManagementSystem.awaitRelationIndexStatus(graph, 'battlesByTime', 'battled').call()
//Reindex the existing data
mgmt = graph.openManagement()
mgmt.updateIndex(mgmt.getRelationIndex(battled, "battlesByTime"), SchemaAction.REINDEX).get()
mgmt.commit()
I am able to create the index, but it never reached the REGISTERED status. ManagementSystem.awaitRelationIndexStatus(graph,'locatedAtByLabel','located_at').call() returns: RelationIndexStatusReport[succeeded=false, indexName='locatedAtByLabel', relationTypeName='located_at', actualStatus=INSTALLED, targetStatus=[REGISTERED], elapsed=PT1M0.081S] no matter how long I wait. I've tried the suggested fixes in this thread (https://groups.google.com/g/janusgraph-users/c/GfYM538KsTo) but haven't had any luck.
16 replies