kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guozhang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-3735) RocksDB objects needs to be disposed after usage
Date Fri, 20 May 2016 02:28:13 GMT
Guozhang Wang created KAFKA-3735:
------------------------------------

             Summary: RocksDB objects needs to be disposed after usage
                 Key: KAFKA-3735
                 URL: https://issues.apache.org/jira/browse/KAFKA-3735
             Project: Kafka
          Issue Type: Bug
          Components: streams
            Reporter: Guozhang Wang
            Assignee: Guozhang Wang


The RocksDB JNI interface {{RocksObject}} has a dispose() function which need to be explicitly
triggered after it is not reused, otherwise GC may not be able to de-reference it off-heap
and hence effective lead to memory leak. See: https://github.com/facebook/rocksdb/issues/752#issuecomment-146511412

We need to make sure all library-controlled RocksDB objects are disposed after usage, and
also indicate users to {{close}} those out-of-control objects.



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

Mime
View raw message