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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0, 0.98.20, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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-0.98.patch
          14 kB
          Andrew Purtell
        2. hbase-15740_v2.patch
          9 kB
          Enis Soztutar
        3. hbase-15740_v1.patch
          9 kB
          Enis Soztutar

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: