You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sh...@apache.org on 2016/03/03 06:33:01 UTC

incubator-atlas git commit: ATLAS-508 Apache nightly build failure - UnsupportedOperationException: Not a single key: __traitNames (shwethags)

Repository: incubator-atlas
Updated Branches:
  refs/heads/master cda983f34 -> b9575f29d


ATLAS-508 Apache nightly build failure - UnsupportedOperationException: Not a single key: __traitNames (shwethags)


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/b9575f29
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/b9575f29
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/b9575f29

Branch: refs/heads/master
Commit: b9575f29df3cc014f1b076abf52d88249bf4d0ef
Parents: cda983f
Author: Shwetha GS <ss...@hortonworks.com>
Authored: Thu Mar 3 11:02:54 2016 +0530
Committer: Shwetha GS <ss...@hortonworks.com>
Committed: Thu Mar 3 11:02:54 2016 +0530

----------------------------------------------------------------------
 release-log.txt                                              | 1 +
 .../src/test/scala/org/apache/atlas/query/GremlinTest.scala  | 2 +-
 .../test/scala/org/apache/atlas/query/QueryTestsUtils.scala  | 8 +++++++-
 3 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/b9575f29/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 45b7f57..92a91e9 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -9,6 +9,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset
 ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags)
 
 ALL CHANGES:
+ATLAS-508 Apache nightly build failure - UnsupportedOperationException: Not a single key: __traitNames (shwethags)
 ATLAS-422 JavaDoc NotificationConsumer and NotificationInterface.(tbeerbower via sumasai)
 ATLAS-536 Falcon hook loads incorrect configuration when -Datlas.conf is not given when falcon server startup (ayubkhan via shwethags)
 ATLAS-502 UI: Provide the ability to search for tags (anilsg via shwethags)

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/b9575f29/repository/src/test/scala/org/apache/atlas/query/GremlinTest.scala
----------------------------------------------------------------------
diff --git a/repository/src/test/scala/org/apache/atlas/query/GremlinTest.scala b/repository/src/test/scala/org/apache/atlas/query/GremlinTest.scala
index 0068364..0289b1a 100755
--- a/repository/src/test/scala/org/apache/atlas/query/GremlinTest.scala
+++ b/repository/src/test/scala/org/apache/atlas/query/GremlinTest.scala
@@ -36,7 +36,7 @@ class GremlinTest extends BaseGremlinTest {
   def beforeAll() {
     TypeSystem.getInstance().reset()
     QueryTestsUtils.setupTypes
-    gProvider = new TitanGraphProvider();
+    gProvider = new TitanGraphProvider()
     gp = new DefaultGraphPersistenceStrategy(new GraphBackedMetadataRepository(gProvider))
     g = QueryTestsUtils.setupTestGraph(gProvider)
   }

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/b9575f29/repository/src/test/scala/org/apache/atlas/query/QueryTestsUtils.scala
----------------------------------------------------------------------
diff --git a/repository/src/test/scala/org/apache/atlas/query/QueryTestsUtils.scala b/repository/src/test/scala/org/apache/atlas/query/QueryTestsUtils.scala
index a2afac5..87494d8 100755
--- a/repository/src/test/scala/org/apache/atlas/query/QueryTestsUtils.scala
+++ b/repository/src/test/scala/org/apache/atlas/query/QueryTestsUtils.scala
@@ -29,9 +29,12 @@ import org.apache.atlas.repository.graph.TitanGraphProvider
 import org.apache.atlas.typesystem.types._
 import org.apache.commons.configuration.{Configuration, ConfigurationException, MapConfiguration}
 import org.apache.commons.io.FileUtils
+import org.apache.commons.lang.RandomStringUtils
 import org.json.JSONObject
 import org.skyscreamer.jsonassert.JSONAssert
 
+import scala.util.Random
+
 
 trait GraphUtils {
 
@@ -152,7 +155,10 @@ object QueryTestsUtils extends GraphUtils {
     }
 
     def setupTestGraph(gp: TitanGraphProvider): TitanGraph = {
-        val g = gp.get
+        var conf = TitanGraphProvider.getConfiguration
+        conf.setProperty("storage.directory",
+            conf.getString("storage.directory") + "/../graph-data/" + RandomStringUtils.randomAlphanumeric(10))
+        val g = TitanFactory.open(conf)
         val manager: ScriptEngineManager = new ScriptEngineManager
         val engine: ScriptEngine = manager.getEngineByName("gremlin-groovy")
         val bindings: Bindings = engine.createBindings