Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Not A Problem
-
None
-
None
Description
In the constructor of BC, the capacity limit looks like 32TB, code as follow:
long blockNumCapacity = capacity / blockSize; if (blockNumCapacity >= Integer.MAX_VALUE) { // Enough for about 32TB of cache! throw new IllegalArgumentException("Cache capacity is too large, only support 32TB now"); }
Default blockSize is 64*1024
Integer.MAX_VALUE is 2147483647
blockNumCapacity >= Integer.MAX_VALUE means capacity >= 127.99TB, not 32TB.