I am unable to remove an index from a Titan DB, with berkeleyJE backend.
The status of the index never changes from INSTALLED to DISABLED.
I have tried with both a Java program and with gremlin commands.
See the gremlin commands I have used below, and the negative result in the response the last command.
Any idea what is going wrong?
Thanks, Matthew
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
gremlin> graph = TitanFactory.open('../conf/titan-berkeleyje.properties')
==>standardtitangraph[berkeleyje:/TCB/BalanceReporter/db]
gremlin> mgmt = graph.openManagement()
==>com.thinkaurelius.titan.graphdb.database.management.ManagementSystem@2b289ac9
gremlin> property = mgmt.getPropertyKey('account.reference')
==>account.reference
gremlin> index = mgmt.getGraphIndex('account.reference')
==>account.reference
gremlin> indexStatus = index.getIndexStatus(property)
==>INSTALLED
gremlin> mgmt.updateIndex(index, SchemaAction.DISABLE_INDEX)
==>com.thinkaurelius.titan.graphdb.database.management.ManagementSystem$EmptyIndexJobFuture@7bc44ce8
gremlin> mgmt.commit()
==>null
gremlin> if (graph.getOpenTransactions()) graph.tx().rollback()
==>null
gremlin> mgmt.awaitGraphIndexStatus(graph, 'account.reference').status(SchemaStatus.DISABLED).call()
==>GraphIndexStatusReport[success=false, indexName='account.reference', targetStatus=DISABLED, notConverged={account.reference=INSTALLED}, converged={}, elapsed=PT1M0.155S]