[ 
https://issues.apache.org/jira/browse/TINKERPOP-2172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16813750#comment-16813750
 ] 

stephen mallette commented on TINKERPOP-2172:
---------------------------------------------

[~gfxman] this seems to be working on 3.4.1 for me - when i use the repro steps 
provided on this issue i see the partition key on both edges:

{code}
gremlin> g = TinkerGraph.open().traversal()
==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> partitionStrategy = 
PartitionStrategy.build().partitionKey("_p").writePartition("A").readPartitions("A").create()
==>PartitionStrategy
gremlin> source = g.withStrategies(partitionStrategy)
==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> v1 = source.addV().property("any", "thing").next()
==>v[0]
gremlin> v2 = source.addV().property("some", "thing").next()
==>v[3]
gremlin> e1 = source.withSideEffect("v2", 
v2).V(v1.id()).addE("connectsTo").from("v2").property("every", "thing").next()
==>e[6][3-connectsTo->0]
gremlin> e2 = source.addE("relatesTo").from(v2).to(v1).property("every", 
"thing").next()
==>e[7][3-relatesTo->0]
gremlin> g.E().valueMap()
==>[_p:A,every:thing]
==>[_p:A,every:thing]
{code}

> PartitionStrategy doesn't apply to AddEdgeStartStep
> ---------------------------------------------------
>
>                 Key: TINKERPOP-2172
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2172
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.4.1
>            Reporter: Vladimir
>            Assignee: stephen mallette
>            Priority: Major
>             Fix For: 3.3.6, 3.4.1
>
>
> PartitionStrategy doesn't apply to traversal started with addE step.
> For instance:
> PartitionStrategy partitionStrategy = PartitionStrategy.build()
>  
> .partitionKey({color:#660e7a}partition{color}).writePartition({color:#008000}"A"{color}).readPartitions({color:#008000}"A"{color}).create();
>  GraphTraversalSource source = 
> {color:#660e7a}g{color}.withStrategies(partitionStrategy);
>  Vertex v1 = source.addV().property({color:#008000}"any"{color}, 
> {color:#008000}"thing"{color}).next();
>  Vertex v2 = source.addV().property({color:#008000}"some"{color}, 
> {color:#008000}"thing"{color}).next();
>  Edge e1 = source.withSideEffect({color:#008000}"v2"{color}, 
> v2).V(v1.id()).addE({color:#008000}"connectsTo"{color}).from({color:#008000}"v2"{color}).property({color:#008000}"every"{color},
>  {color:#008000}"thing"{color}).next();
>  Edge e2 = 
> source.addE({color:#008000}"relatesTo"{color}).from(v2).to(v1).property({color:#008000}"every"{color},
>  {color:#008000}"thing"{color}).next();
> If you check e1 you will see partition property. But edge e2 wont have any 
> partition property.



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

Reply via email to