Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22339

BucketCache capacity limit may be wrong

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • None
    • None
    • BucketCache

    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. 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            puleya7 puleya7
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: