You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/02/27 07:43:00 UTC

[jira] [Commented] (KAFKA-7912) In-memory key-value store does not support concurrent access

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

ASF GitHub Bot commented on KAFKA-7912:
---------------------------------------

ableegoldman commented on pull request #6336: KAFKA-7912: Support concurrent access in InMemoryKeyValueStore
URL: https://github.com/apache/kafka/pull/6336
 
 
   Previously the InMemoryKeyValue store would throw a ConcurrentModificationException if the store was modified beneath an open iterator. The TreeMap implementation was swapped with a ConcurrentSkipListMap for similar performance while supporting concurrent access.
   
   Added one test to AbstractKeyValueStoreTest, no existing tests caught this.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> In-memory key-value store does not support concurrent access 
> -------------------------------------------------------------
>
>                 Key: KAFKA-7912
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7912
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Sophie Blee-Goldman
>            Assignee: Sophie Blee-Goldman
>            Priority: Major
>
> Currently, the in-memory key-value store uses a Map to store key-value pairs and fetches them by calling subMap and returning an iterator to this submap. This is unsafe as the submap is just a view of the original map and there is risk of concurrent access.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)