tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [29/50] [abbrv] tinkerpop git commit: TINKERPOP-1698 Initialize computedMetrics
Date Mon, 10 Jul 2017 21:26:11 GMT
TINKERPOP-1698 Initialize computedMetrics

Without that initialization there are scenarios in sparkgraphcomputer where serialization
will fail. The Gryo 3.0 TraversalMetricSerializer gets a collection of computed metrics and
null pointers basically.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/0501d42e
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/0501d42e
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/0501d42e

Branch: refs/heads/TINKERPOP-1427
Commit: 0501d42e029f920960bc12beb150d2f442199cb3
Parents: 21b35c4
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Mon Jun 26 15:41:38 2017 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Mon Jul 10 14:14:02 2017 -0400

----------------------------------------------------------------------
 .../gremlin/process/traversal/util/DefaultTraversalMetrics.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/0501d42e/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversalMetrics.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversalMetrics.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversalMetrics.java
index c5f290a..584456a 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversalMetrics.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversalMetrics.java
@@ -52,7 +52,7 @@ public final class DefaultTraversalMetrics implements TraversalMetrics,
Serializ
     The following are computed values upon the completion of profiling in order to report
the results back to the user
      */
     private long totalStepDuration;
-    private Map<String, ImmutableMetrics> computedMetrics;
+    private Map<String, ImmutableMetrics> computedMetrics = new LinkedHashMap<>();
 
     public DefaultTraversalMetrics() {
     }


Mime
View raw message