elasticsearchindexingcassandrajanusgraph

JanusGraph index stuck in "INSTALLED" state after running REGISTER_INDEX command


I'm trying to create a composite index on the title property in JanusGraph using the Gremlin console.

Here's what I've done so far:

  1. Created the title property key.
  2. Built a unique composite index on this key named byTitleUnique.
  3. Waited for the index to show in the INSTALLED state using

mgmt.getGraphIndex('byTitleUnique')

  1. Attempted to update the index status to REGISTERED using the following commands:

mgmt = graph.openManagement()
mgmt.updateIndex(mgmt.getGraphIndex('byTitleUnique'), SchemaAction.REGISTER_INDEX).get()
mgmt.commit()

After running the command and waiting a long time (even over an hour), the index status still remains in the INSTALLED state.

As per my understanding, after this step, I should be able to Reindex and then Enable the index. But since the index isn’t moving past the INSTALLED state, I'm stuck.


Questions:

Any help or insights would be appreciated.


Solution

  • We found a workaround for updating the index status. We added the following storage configuration specifically for re-indexing purposes in the JanusGraph property:

    storage.cql.use-external-locking=true
    

    https://docs.janusgraph.org/v0.4/basics/configuration-reference/. Once the re-indexing is complete, please remember to turn it off.