diff --git a/paimon-common/src/main/java/org/apache/paimon/io/cache/CacheManager.java b/paimon-common/src/main/java/org/apache/paimon/io/cache/CacheManager.java index f85354aa2b5a..c9c253c302e2 100644 --- a/paimon-common/src/main/java/org/apache/paimon/io/cache/CacheManager.java +++ b/paimon-common/src/main/java/org/apache/paimon/io/cache/CacheManager.java @@ -98,7 +98,7 @@ public MemorySegment getPage(CacheKey key, CacheReader reader, CacheCallback cal throw new RuntimeException(e); } }); - return checkNotNull(value, String.format("Cache result for key(%s) is null", key)).segment; + return checkNotNull(value, "Cache result for key(%s) is null", key).segment; } public void invalidPage(CacheKey key) {