Multiple entries with same key on mixed index


toom@...
 

Hello,

I encounter the error describe in the issue #1916 (https://github.com/JanusGraph/janusgraph/issues/1916) on a mixed index (lucene). When I list property keys of the index, they are all duplicated.

I haven't identified the root cause and I don't know how to reproduce it.

I would like to find a solution to repair the inconsistency,  without loosing my data.

The exposed API of JanusGraphManagement doesn't seem to be helpful: mixed index can't be removed and the IllegalArgumentException is raised when I try to retrieve the index status. Removing the index in Lucene or unconfiguring index backend doesn't help either.

So I've tried to find a solution using internal API. Is it safe to delete Lucene data files and remove the schema vertex related to the mixed index ?

((ManagementSystem)mgmt).getWrappedTx()
  .getSchemaVertex(JanusGraphSchemaCategory.GRAPHINDEX.getSchemaName("indexName"))
  .remove()

Is there a reason to not permit to remove a mixed index ?

Best wishes

Toom.