You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Colin P. McCabe (JIRA)" <ji...@apache.org> on 2017/05/08 21:54:04 UTC

[jira] [Created] (KAFKA-5198) RocksDbStore#openIterators should be synchronized, since it is accessed from multiple threads

Colin P. McCabe created KAFKA-5198:
--------------------------------------

             Summary: RocksDbStore#openIterators should be synchronized, since it is accessed from multiple threads
                 Key: KAFKA-5198
                 URL: https://issues.apache.org/jira/browse/KAFKA-5198
             Project: Kafka
          Issue Type: Bug
            Reporter: Colin P. McCabe
            Assignee: Colin P. McCabe


Currently, {{RocksDBIterator#close}} accesses {{RocksDbStore#openIterators}} without taking the {{RocksDbStore}} lock.  The only lock {{RocksDBIterator#close}} holds is a lock on the iterator object, which does not help here.  So {{RocksDbStore#openIterators}} should be made synchronized.  Otherwise there is undefined behavior, including {{ConcurrentModificationExceptions}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)