Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2172

PartitionStrategy doesn't apply to AddEdgeStartStep

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.3.6, 3.4.1
    • Component/s: process
    • Labels:
      None

      Description

      PartitionStrategy doesn't apply to traversal started with addE step.

      For instance:

      PartitionStrategy partitionStrategy = PartitionStrategy.build()
      .partitionKey(partition).writePartition("A").readPartitions("A").create();
      GraphTraversalSource source = g.withStrategies(partitionStrategy);
      Vertex v1 = source.addV().property("any", "thing").next();
      Vertex v2 = source.addV().property("some", "thing").next();
      Edge e1 = source.withSideEffect("v2", v2).V(v1.id()).addE("connectsTo").from("v2").property("every", "thing").next();
      Edge e2 = source.addE("relatesTo").from(v2).to(v1).property("every", "thing").next();

      If you check e1 you will see partition property. But edge e2 wont have any partition property.

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              vladimir.bogomoloff Vladimir
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: