tonymtu commented on code in PR #9528:
URL: https://github.com/apache/paimon/pull/9528#discussion_r3910250783


##########
paimon-common/src/main/java/org/apache/paimon/rest/RESTTokenFileIO.java:
##########
@@ -82,6 +82,23 @@ public class RESTTokenFileIO implements FileIO {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(RESTTokenFileIO.class);
 
+    /** Sets the maximum number of cached FileIO instances. */
+    public static void setFileIOCacheMaximumSize(long maximumSize) {
+        FILE_IO_CACHE
+                .policy()
+                .eviction()
+                .orElseThrow(IllegalStateException::new)
+                .setMaximum(maximumSize);

Review Comment:
   Fixed in ec3d31285. The setter now requires maximumSize > 0, and the test 
covers the zero value.



-- 
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