hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1388112 - in /hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore: TestMarkPartition.java TestMetaStoreEventListener.java
Date Thu, 20 Sep 2012 16:54:07 GMT
Author: hashutosh
Date: Thu Sep 20 16:54:06 2012
New Revision: 1388112

URL: http://svn.apache.org/viewvc?rev=1388112&view=rev
Log:
HIVE-3487 : Some of the Metastore unit tests failing on Windows because of the static variables
initialization problem in HiveConf class. (Kanna Karanam via Ashutosh Chauhan)

Modified:
    hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMarkPartition.java
    hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMetaStoreEventListener.java

Modified: hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMarkPartition.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMarkPartition.java?rev=1388112&r1=1388111&r2=1388112&view=diff
==============================================================================
--- hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMarkPartition.java
(original)
+++ hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMarkPartition.java
Thu Sep 20 16:54:06 2012
@@ -47,8 +47,8 @@ public class TestMarkPartition extends T
   protected void setUp() throws Exception {
 
     super.setUp();
-    System.setProperty(ConfVars.METASTORE_EVENT_CLEAN_FREQ.varname, "2");
-    System.setProperty(ConfVars.METASTORE_EVENT_EXPIRY_DURATION.varname, "5");
+    System.setProperty("hive.metastore.event.clean.freq", "2");
+    System.setProperty("hive.metastore.event.expiry.duration", "5");
     hiveConf = new HiveConf(this.getClass());
     hiveConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, "");
     hiveConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, "");

Modified: hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMetaStoreEventListener.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMetaStoreEventListener.java?rev=1388112&r1=1388111&r2=1388112&view=diff
==============================================================================
--- hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMetaStoreEventListener.java
(original)
+++ hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMetaStoreEventListener.java
Thu Sep 20 16:54:06 2012
@@ -82,9 +82,9 @@ public class TestMetaStoreEventListener 
   protected void setUp() throws Exception {
 
     super.setUp();
-    System.setProperty(ConfVars.METASTORE_EVENT_LISTENERS.varname,
+    System.setProperty("hive.metastore.event.listeners",
         DummyListener.class.getName());
-    System.setProperty(ConfVars.METASTORE_PRE_EVENT_LISTENERS.varname,
+    System.setProperty("hive.metastore.pre.event.listeners",
         DummyPreListener.class.getName());
     Thread t = new Thread(new RunMS());
     t.start();



Mime
View raw message