VladRodionov commented on code in PR #8653:
URL: https://github.com/apache/hbase/pull/8653#discussion_r4067840579


##########
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestCacheConfig.java:
##########
@@ -510,4 +431,40 @@ void testCacheAccessServiceIsNoOpWhenBlockCacheIsNull() {
     assertInstanceOf(NoOpCacheAccessService.class, service);
     assertFalse(service.isCacheEnabled());
   }
+
+  /**
+   * Verifies that a capacity-driven eviction from the native L1 cache engine 
is propagated to the
+   * configured L2 cache engine.
+   * @throws Exception if waiting for an L1 eviction to reach L2 fails
+   */
+  @Test
+  public void testL1CapacityEvictionMovesBlockToL2() throws Exception {
+    this.conf.set(HConstants.BUCKET_CACHE_IOENGINE_KEY, "offheap");
+    this.conf.setFloat(HConstants.HFILE_BLOCK_CACHE_SIZE_KEY, 0.001f);
+    this.conf.setInt(HConstants.BUCKET_CACHE_SIZE_KEY, 100);

Review Comment:
   Fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to