kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-4851) SessionStore.fetch(key) is a performance bottleneck
Date Tue, 07 Mar 2017 23:32:37 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15900385#comment-15900385

ASF GitHub Bot commented on KAFKA-4851:

Github user asfgit closed the pull request at:


> SessionStore.fetch(key) is a performance bottleneck
> ---------------------------------------------------
>                 Key: KAFKA-4851
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4851
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions:
>            Reporter: Damian Guy
>            Assignee: Damian Guy
>             Fix For:
> When flushing the {{CachingSessionStore}} we need to search for the previous value for
a session. This involves searching each open RocksDB segment. The code ends up doing a call
 {{Segments.segments(0, Long.MAX_VALUE)}} this results in approximately 3 million gets on
a {{ConcurrentHashMap}} of which all but 3 of them will be hits. 
> Change this code to restrict the segmentIds to search just to the available set.

This message was sent by Atlassian JIRA

View raw message