]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Shared block cache in RocksJava
authorSagar Vemuri <svemuri@fb.com>
Thu, 22 Mar 2018 01:31:21 +0000 (18:31 -0700)
committerSagar Vemuri <svemuri@fb.com>
Fri, 23 Mar 2018 21:56:05 +0000 (14:56 -0700)
commit163dd4b81bfaf52d9dd29e1276ac31def69ea2c4
tree3eec041cce93a1366f3ca726f79d9a3025de2341
parent16425825597873f6fce0d7388dd5ef31bda4ef44
Shared block cache in RocksJava

Summary:
Changes to support sharing block cache using the Java API.

Previously DB instances could share the block cache only when the same Options instance is passed to all the DB instances. But now, with this change, it is possible to explicitly create a cache and pass it to multiple options instances, to share the block cache.

Implementing this for [Rocksandra](https://github.com/instagram/cassandra/tree/rocks_3.0), but this feature has been requested by many java api users over the years.
Closes https://github.com/facebook/rocksdb/pull/3623

Differential Revision: D7305794

Pulled By: sagar0

fbshipit-source-id: 03e4e8ed7aeee6f88bada4a8365d4279ede2ad71
java/rocksjni/table.cc
java/src/main/java/org/rocksdb/BlockBasedTableConfig.java
java/src/test/java/org/rocksdb/BlockBasedTableConfigTest.java