Graph corruption?
Joe Obernberger
Hi all - I'm seeing this from a recent graph I built:
gremlin> :> g.V(4162).valueMap() ==>{source=[DS_106], sourceName=[GDELTRecord3]} gremlin> :> g.V(4146).valueMap() ==>{source=[DS_106], sourceName=[GDELTRecord3]} gremlin> :> g.V(4226).valueMap() ==>{source=[DS_106], sourceName=[GDELTRecord3]} gremlin> :> g.V(4250).valueMap() ==>{source=[DS_106], sourceName=[GDELTRecord3]} gremlin> gremlin> gremlin> :> g.V().has("source","DS_106") ==>v[4226] The graph has an index on source like this: PropertyKey sourceProperty = mgmt.makePropertyKey("source").dataType(String.class).cardinality(Cardinality.SINGLE).make(); JanusGraphIndex sourceIndex = mgmt.buildIndex("bySourceComposite", Vertex.class).addKey(sourceProperty).unique().buildCompositeIndex(); mgmt.setConsistency(sourceProperty, ConsistencyModifier.LOCK); mgmt.setConsistency(sourceIndex, ConsistencyModifier.LOCK); How could the graph end up with several vertices with the same source string? Still learning graphs... Thank you! -Joe -- This email has been checked for viruses by AVG. https://www.avg.com |
|