gavinchou commented on code in PR #42451:
URL: https://github.com/apache/doris/pull/42451#discussion_r1818143951


##########
be/test/io/cache/block_file_cache_test.cpp:
##########
@@ -1136,7 +1136,7 @@ TEST_F(BlockFileCacheTest, max_ttl_size) {
         auto holder = cache.get_or_set(key1, offset, 100000, context);
         auto blocks = fromHolder(holder);
         ASSERT_EQ(blocks.size(), 1);
-        if (offset < 90000000) {
+        if (offset < (100000000 * config::max_ttl_cache_ratio / 100)) {

Review Comment:
   better to use `100000000L`



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to