KIP-453 — Add close() method to RocksDBConfigSetter
Accepted Kafka 2.3 Streams
Adds a close() method to the RocksDBConfigSetter interface, called when the RocksDB instance is shut down, allowing users to release native RocksObjects they created in setConfig(). RocksJava options objects (e.g., BlockBasedTableConfig, BloomFilter) extend AbstractNativeReference and must be explicitly closed to free C++ heap memory; without a close hook, user-created objects leaked native memory.
Details
| Author | A. Sophie Blee-Goldman |
| Status | Accepted |
| Kafka Version | 2.3 |
| JIRA | KAFKA-8324 |
| Wiki | View on Apache Wiki |
| Created | 2019-04-13 |
| Last Modified | 2019-05-17 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.