Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15161 Umbrella: Miscellaneous improvements from production usage
  3. HBASE-15740

Replication source.shippedKBs metric is undercounting because it is in KB

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 0.98.20, 2.0.0
    • None
    • None
    • Reviewed
    • Removed Replication source.shippedKBs metric in favor of source.shippedBytes

    Description

      In a cluster where there is replication going on, I've noticed that this is always 0:

          "source.shippedKBs" : 0,
      

      Looking at the source reveals why:

                metrics.shipBatch(currentNbOperations, currentSize / 1024, currentNbHFiles);
      

      It is always undercounting because we discard remaining bytes after KB boundary. This is specially a problem when we are always shipping small batches <1KB.

      Attachments

        1. hbase-15740_v1.patch
          9 kB
          Enis Soztutar
        2. hbase-15740_v2.patch
          9 kB
          Enis Soztutar
        3. HBASE-15740-0.98.patch
          14 kB
          Andrew Kyle Purtell

        Activity

          People

            enis Enis Soztutar
            enis Enis Soztutar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: