FAQ
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;

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcommits @
categorieshive, hadoop
postedMar 3, '15 at 8:04p
activeMar 3, '15 at 8:04p
posts1
users1
websitehive.apache.org

1 user in discussion

Vgumashta: 1 post

People

Translate

site design / logo © 2021 Grokbase