[
https://issues.apache.org/jira/browse/HIVE-15373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15729574#comment-15729574
]
Sergey Shelukhin edited comment on HIVE-15373 at 12/7/16 6:52 PM:
------------------------------------------------------------------
The state is thread-specific. Each thread calls open, then does stuff
(potentially with nested open/close), then calls commit/rollback ... if 2
threads happen to be using the same rawstore, we don't want their open/close
and their operations to mix. So to make it thread-safe, the entire top-level
transaction needs to be isolated, or the txn state would need to be separated
into some sort of context object
was (Author: sershe):
The state is thread-specific. Each thread calls open, then does stuff
(potentially with nested open/close), then calls commit/rollback ... if 2
threads happen to be using the same rawstore, we don't want their open/close
and their operations to mix. So to make it thread-safe, the entire transaction
needs to be isolated, or the txn state would need to be separated into some
sort of context object
> DbNotificationListener should use thread-local RawStore
> -------------------------------------------------------
>
> Key: HIVE-15373
> URL: https://issues.apache.org/jira/browse/HIVE-15373
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Reporter: Alexander Kolbasov
>
> ObjectStore.java has several important calls which are not thread-safe:
> * openTransaction()
> * commitTransaction()
> * rollbackTransaction()
> These should be made thread-safe.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)