tourist
tourist

Reputation: 4333

Janugraph REINDEX stuck in INSTALLED

I loaded a graph into Janusgraph from CSV file. Once the data is loaded, I tried to index the graph using compositeIndex. Once the index is built the status is stuck in INSTALLED status.

mgmt=graph.openManagement()
mgmt.getOpenTransactions().size()
==> 0

I've all the transactions closed .

mgmt.buildIndex("querySpeedUp", Vertex.class).addKey(experimentid).addKey(regionid).addKey(sourcemfield).addKey(zcentroid).addKey(sourcesfield).buildCompositeIndex()
mgmt.awaitGraphIndexStatus(graph, 'fastTraversal').call()

mgmt.commit()

//opened new connection
mgmt = graph.openManagement()
gremlin> propkey = mgmt.getPropertyKey('experimentid')
==>experimentid
gremlin>  byName.getIndexStatus(propkey);
==>INSTALLED
gremlin> mgmt.updateIndex(byName, SchemaAction.REGISTER_INDEX).get()
==>null
gremlin> byName.getIndexStatus(propkey);
==>INSTALLED
gremlin> mgmt.commit()
==>null
gremlin> mgmt = graph.openManagement()
==>org.janusgraph.graphdb.database.management.ManagementSystem@5f025000
gremlin> byName.getIndexStatus(propkey);
==>INSTALLED
gremlin> mgmt.awaitGraphIndexStatus(graph, 'querySpeedUp').call()
==>GraphIndexStatusReport[success=false, indexName='querySpeedUp', targetStatus=[REGISTERED], notConverged={sourcemfield=INSTALLED, sourcesfield=INSTALLED, regionid=INSTALLED, zcentroid=INSTALLED, experimentid=INSTALLED}, converged={}, elapsed=PT1M0.099S]

I've checked various sources here and here but didn't help

Upvotes: 0

Views: 879

Answers (1)

Andrew G
Andrew G

Reputation: 51

I know this is an old question, but for others who get stuck with this, I found I had to call graph.tx().commit() after the mgmt.commit() and it fixed it for me.

Upvotes: 1

Related Questions