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

Resolve a TODO of BucketAllocator: "Why we add the extra 1024 bytes? Slop?"

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      // TODO: Why we add the extra 1024 bytes? Slop?
      private static final int DEFAULT_BUCKET_SIZES[] = { 4 * 1024 + 1024, 8 * 1024 + 1024,
       16 * 1024 + 1024, 32 * 1024 + 1024, 40 * 1024 + 1024, 48 * 1024 + 1024,
       56 * 1024 + 1024, 64 * 1024 + 1024, 96 * 1024 + 1024, 128 * 1024 + 1024,
       192 * 1024 + 1024, 256 * 1024 + 1024, 384 * 1024 + 1024,
       512 * 1024 + 1024 };

      The real block size in hfile may a little larger than the size we configured ,so we need add extra 1024 bytes for fit.

      Attachments

        Issue Links

          Activity

            People

              filtertip Zheng Wang
              filtertip Zheng Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: