You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2017/11/10 03:14:00 UTC
[jira] [Commented] (HIVE-18039) Use ConcurrentHashMap for
CachedStore
[ https://issues.apache.org/jira/browse/HIVE-18039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16246961#comment-16246961 ]
Alexander Kolbasov commented on HIVE-18039:
-------------------------------------------
It is also worth considering 3-rd party Cache implementations - e.g. Caffeine (https://github.com/ben-manes/caffeine).
> Use ConcurrentHashMap for CachedStore
> -------------------------------------
>
> Key: HIVE-18039
> URL: https://issues.apache.org/jira/browse/HIVE-18039
> Project: Hive
> Issue Type: Improvement
> Components: Hive
> Affects Versions: 3.0.0
> Reporter: Alexander Kolbasov
>
> SharedCache used by CachedStore uses single big lock to synchronize all access. This looks like an overkill - looks like it is possible to use ConcurrentHashMap instead. Also it makes sense to move deepCopy() operations outside the lock to reduce lock hold times.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)