You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vg...@apache.org on 2015/03/03 21:04:40 UTC
svn commit: r1663773 -
/hive/branches/branch-1.0/service/src/java/org/apache/hive/service/server/ThreadFactoryWithGarbageCleanup.java
Author: vgumashta
Date: Tue Mar 3 20:04:40 2015
New Revision: 1663773
URL: http://svn.apache.org/r1663773
Log:
HIVE-9831: HiveServer2 should use ConcurrentHashMap in ThreadFactory (Vaibhav Gumashta reviewed by Thejas Nair)
Modified:
hive/branches/branch-1.0/service/src/java/org/apache/hive/service/server/ThreadFactoryWithGarbageCleanup.java
Modified: hive/branches/branch-1.0/service/src/java/org/apache/hive/service/server/ThreadFactoryWithGarbageCleanup.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-1.0/service/src/java/org/apache/hive/service/server/ThreadFactoryWithGarbageCleanup.java?rev=1663773&r1=1663772&r2=1663773&view=diff
==============================================================================
--- hive/branches/branch-1.0/service/src/java/org/apache/hive/service/server/ThreadFactoryWithGarbageCleanup.java (original)
+++ hive/branches/branch-1.0/service/src/java/org/apache/hive/service/server/ThreadFactoryWithGarbageCleanup.java Tue Mar 3 20:04:40 2015
@@ -19,8 +19,8 @@
package org.apache.hive.service.server;
-import java.util.HashMap;
import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ThreadFactory;
import org.apache.hadoop.hive.metastore.RawStore;
@@ -43,7 +43,7 @@ import org.apache.hadoop.hive.metastore.
*/
public class ThreadFactoryWithGarbageCleanup implements ThreadFactory {
- private static Map<Long, RawStore> threadRawStoreMap = new HashMap<Long, RawStore>();
+ private static Map<Long, RawStore> threadRawStoreMap = new ConcurrentHashMap<Long, RawStore>();
private final String namePrefix;