Skip to content

Commit

Permalink
HDDS-11526. Fix hdds.datanode.metadata.rocksdb.cache.size default val…
Browse files Browse the repository at this point in the history
…ue mismatch (apache#7284)
  • Loading branch information
sarvekshayr authored Oct 8, 2024
1 parent b3afaec commit 06ccdb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hadoop-hdds/common/src/main/resources/ozone-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@

<property>
<name>hdds.datanode.metadata.rocksdb.cache.size</name>
<value>64MB</value>
<value>1GB</value>
<tag>OZONE, DATANODE, MANAGEMENT</tag>
<description>
Size of the block metadata cache shared among RocksDB instances on each
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ public void testContainerRocksDB(ContainerTestVersionInfo versionInfo)

try (DBHandle db = BlockUtils.getDB(keyValueContainerData, CONF)) {
RDBStore store = (RDBStore) db.getStore().getStore();
long defaultCacheSize = 64 * OzoneConsts.MB;
long defaultCacheSize = OzoneConsts.GB;
long cacheSize = Long.parseLong(store
.getProperty("rocksdb.block-cache-capacity"));
assertEquals(defaultCacheSize, cacheSize);
Expand Down

0 comments on commit 06ccdb3

Please sign in to comment.