tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob F (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TINKERPOP-2196) PartitionStrategy with includeMetaProperties(true) can't add labeled vertex
Date Fri, 12 Apr 2019 15:55:00 GMT
Bob F created TINKERPOP-2196:
--------------------------------

             Summary: PartitionStrategy with includeMetaProperties(true) can't add labeled
vertex
                 Key: TINKERPOP-2196
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2196
             Project: TinkerPop
          Issue Type: Bug
          Components: tinkergraph
    Affects Versions: 3.4.1
            Reporter: Bob F


{code:java}
graph = TinkerGraph.open()

g1 = graph.traversal().withStrategies(PartitionStrategy.build().partitionKey("_partition").writePartition("1").readPartitions("1").create())
v1 = g1.addV("node").next() // OK
v2 = g1.addV("node").next() // OK

g2 = graph.traversal().withStrategies(PartitionStrategy.build().partitionKey("_partition").writePartition("1").readPartitions("1").includeMetaProperties(true).create())
g2.addV() // OK
g2.addE("link").from(v1).to(v2) // OK
g2.addV("node") // Exception: org.apache.tinkerpop.gremlin.structure.T$1 cannot be cast to
java.lang.String

{code}
Trying to add a labeled vertex through a PartitionStrategy that is partitioning meta-properties
fails. Adding a non-labeled vertex or a labeled edge succeeds.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message