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

TinkerGraphProvider does not initialize temp dir

    XMLWordPrintableJSON

    Details

      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.

      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)
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              mhfrantz Matt Frantz
              Reporter:
              mhfrantz Matt Frantz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: