[ 
https://issues.apache.org/jira/browse/SAMZA-958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15312845#comment-15312845
 ] 

Xinyu Liu commented on SAMZA-958:
---------------------------------

RB posted: https://reviews.apache.org/r/48182/. Please take a look.

> Make store/cache thread safe
> ----------------------------
>
>                 Key: SAMZA-958
>                 URL: https://issues.apache.org/jira/browse/SAMZA-958
>             Project: Samza
>          Issue Type: Sub-task
>            Reporter: Xinyu Liu
>            Assignee: Xinyu Liu
>
> All the existing stores/cache need to be thread safe in order to be used by 
> multithreaded tasks. The following changes are made to ensure the thread 
> safety of the stores:
> - For CachedStore, use sychronized lock for each public function;
> - For current InMemoryKeyValueStore, use ConcurrentSkipListMap as underlying 
> map for thread safety.
> - For store Iterator, do not support remove functionality (throw 
> UnsupportedOperationException like RocksDb does today).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to