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

Check DBEs where fields are being read from Bytebuffers but unused.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      public Cell getFirstKeyCellInBlock(ByteBuff block) {
          block.mark();
          block.position(Bytes.SIZEOF_INT);
          int keyLength = ByteBuff.readCompressedInt(block);
          // TODO : See if we can avoid these reads as the read values are not getting used
          ByteBuff.readCompressedInt(block);
      

      In DBEs many a places we read the integers just to skip them. This JIRA is to see if we can avoid this and rather go position based, as per a review comment in HBASE-12213.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jingcheng.du@intel.com Jingcheng Du
                Reporter:
                ram_krish ramkrishna.s.vasudevan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: