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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: