You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Matt Frantz (JIRA)" <ji...@apache.org> on 2015/10/04 00:35:26 UTC
[jira] [Updated] (TINKERPOP3-867) TinkerGraphProvider does not
initialize temp dir
[ https://issues.apache.org/jira/browse/TINKERPOP3-867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Frantz updated TINKERPOP3-867:
-----------------------------------
Description:
Running the {{GraphTest}} suite by itself fails because the temporary directory used to test {{TinkerGraph}} persistence is not initialized by {{TinkerGraphProvider}}. When run with other tests, the failure does not occur, presumably because another test creates the directory.
{noformat}
mvn clean -DskipTests=true -Dmaven.javadoc.skip=true install
export GREMLIN_TESTS=org.apache.tinkerpop.gremlin.structure.GraphTest
mvn -pl tinkergraph-gremlin -Dmaven.javadoc.skip=true test
...
shouldPersistDataOnClose(org.apache.tinkerpop.gremlin.structure.GraphTest) Time elapsed: 0.009 sec <<< ERROR!
java.lang.RuntimeException: Could not save graph at /Users/.../tinkerpop3/tinkergraph-gremlin/target/temp/shouldPersistDataOnClose.kryo with gryo
at org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.saveGraph(TinkerGraph.java:269)
at org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.close(TinkerGraph.java:216)
at org.apache.tinkerpop.gremlin.structure.GraphTest.shouldPersistDataOnClose(GraphTest.java:1147)
...
{noformat}
was:
Running the {{GraphTest}} suite by itself fails because the temporary directory used to test {{TinkerGraph}} persistence is not initialized by {{TinkerGraphProvider}}. When run with other tests, the failure does not occur, presumably because another test creates the directory.
{noformat}
export GREMLIN_TESTS=org.apache.tinkerpop.gremlin.structure.GraphTest
mvn -pl tinkergraph-gremlin -Dmaven.javadoc.skip=true test
...
shouldPersistDataOnClose(org.apache.tinkerpop.gremlin.structure.GraphTest) Time elapsed: 0.009 sec <<< ERROR!
java.lang.RuntimeException: Could not save graph at /Users/.../tinkerpop3/tinkergraph-gremlin/target/temp/shouldPersistDataOnClose.kryo with gryo
at org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.saveGraph(TinkerGraph.java:269)
at org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.close(TinkerGraph.java:216)
at org.apache.tinkerpop.gremlin.structure.GraphTest.shouldPersistDataOnClose(GraphTest.java:1147)
...
{noformat}
> TinkerGraphProvider does not initialize temp dir
> ------------------------------------------------
>
> Key: TINKERPOP3-867
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-867
> Project: TinkerPop 3
> Issue Type: Test
> Components: tinkergraph
> Affects Versions: 3.0.1-incubating
> Reporter: Matt Frantz
> Assignee: Matt Frantz
> Fix For: 3.1.0-incubating, 3.0.2-incubating
>
>
> Running the {{GraphTest}} suite by itself fails because the temporary directory used to test {{TinkerGraph}} persistence is not initialized by {{TinkerGraphProvider}}. When run with other tests, the failure does not occur, presumably because another test creates the directory.
> {noformat}
> mvn clean -DskipTests=true -Dmaven.javadoc.skip=true install
> export GREMLIN_TESTS=org.apache.tinkerpop.gremlin.structure.GraphTest
> mvn -pl tinkergraph-gremlin -Dmaven.javadoc.skip=true test
> ...
> shouldPersistDataOnClose(org.apache.tinkerpop.gremlin.structure.GraphTest) Time elapsed: 0.009 sec <<< ERROR!
> java.lang.RuntimeException: Could not save graph at /Users/.../tinkerpop3/tinkergraph-gremlin/target/temp/shouldPersistDataOnClose.kryo with gryo
> at org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.saveGraph(TinkerGraph.java:269)
> at org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.close(TinkerGraph.java:216)
> at org.apache.tinkerpop.gremlin.structure.GraphTest.shouldPersistDataOnClose(GraphTest.java:1147)
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)