hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1495464 - /hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
Date Fri, 21 Jun 2013 15:01:40 GMT
Author: hashutosh
Date: Fri Jun 21 15:01:40 2013
New Revision: 1495464

URL: http://svn.apache.org/r1495464
Log:
HIVE-4767 : ObjectStore.getPMF has concurrency problems (Brock Noland via Ashutosh Chauhan)

Modified:
    hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java

Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java?rev=1495464&r1=1495463&r2=1495464&view=diff
==============================================================================
--- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java (original)
+++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java Fri Jun
21 15:01:40 2013
@@ -258,7 +258,7 @@ public class ObjectStore implements RawS
     return prop;
   }
 
-  private static PersistenceManagerFactory getPMF() {
+  private static synchronized PersistenceManagerFactory getPMF() {
     if (pmf == null) {
       pmf = JDOHelper.getPersistenceManagerFactory(prop);
       DataStoreCache dsc = pmf.getDataStoreCache();



Mime
View raw message