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

Compactor's shipping logic decision should be based on the current store's block size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      Currently we do call KeyValueScanner.shipped() if the size of the KVs compacted reaches certain threshold

           if (kvs != null && bytesWrittenProgressForShippedCall > shippedCallSizeLimit) {
                  kvs.shipped();
                  bytesWrittenProgressForShippedCall = 0;
      }
      

      Where the shippedCallSizeLimit is

          long shippedCallSizeLimit = (long) minFilesToCompact * HConstants.DEFAULT_BLOCKSIZE;
      

      Instead it is better if it is based on the actual configured block size for that store. It can still have the multiplying factore of 'minFilesToCompact ' but having default store size would mean that if the store has smaller block sizes configured we hold on to more blocks and those will not get evicted.

      Attachments

        1. HBASE-16454.patch
          4 kB
          ramkrishna.s.vasudevan

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            ram_krish ramkrishna.s.vasudevan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: