Re: Multiple writers cause inconsistent vertices
Ajay Srivastava <Ajay.Sr...@...>
I have commit and await in my code. Here is more information -
scala> val mgt = graph.openManagement()
mgt: org.janusgraph.core.schema.JanusGraphManagement = org.janusgraph.graphdb.database.management.ManagementSystem@46f31564
scala> val index = mgt.getGraphIndexes(classOf[Vertex]).iterator.next
index: org.janusgraph.core.schema.JanusGraphIndex = UniqueURI
scala> val properties = index.getFieldKeys
properties: Array[org.janusgraph.core.PropertyKey] = Array(URI)
res30: List[org.janusgraph.core.PropertyKey] = List(URI)
res29: org.janusgraph.core.schema.SchemaStatus = ENABLED
So, the status of index is “ENABLED”. Should it be “REGISTERED" ?
I deleted db and recreated schema again, the awaitGraphIndexStatus call times out -
14:03:04,435 INFO GraphIndexStatusWatcher:81 - Some key(s) on index UniqueURI do not currently have status REGISTERED: URI=ENABLED
14:03:04,435 INFO GraphIndexStatusWatcher:90 - Timed out (PT1M) while waiting for index UniqueURI to converge on status REGISTERED
I waited for half an hour but the status remains as “ENABLED”.
Note that there are no records in db and I create all vertex/edge properties and indexes in one transaction. I have tried creating only vertex properties, labels and index in one transaction and that also is not working.