kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-6412) Improve synchronization in CachingKeyValueStore methods
Date Mon, 08 Jan 2018 19:33:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-6412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated KAFKA-6412:
--------------------------
    Attachment: 6412-jmh.v1.txt

> Improve synchronization in CachingKeyValueStore methods
> -------------------------------------------------------
>
>                 Key: KAFKA-6412
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6412
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>            Reporter: Ted Yu
>         Attachments: 6412-jmh.v1.txt, k-6412.v1.txt
>
>
> Currently CachingKeyValueStore methods are synchronized at method level.
> It seems we can use read lock for getter and write lock for put / delete methods.
> For getInternal(), if the underlying thread is streamThread, the getInternal() may trigger
eviction. This can be handled by obtaining write lock at the beginning of the method for streamThread.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message