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

Scan should do additional validation on start and stop row

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • Client
    • None
    • Scan#setStartRow() and Scan#setStopRow() now validate the argument passed for each row key. If the length of the byte[] passed exceeds Short.MAX_VALUE, an IllegalArgumentException will be thrown.

    Description

      Scan.setStartRow() and setStopRow() should validate the byte[] passed to ensure it meets the criteria for a row key. If the byte[] length is greater that Short.MAX_VALUE, we should throw an IllegalArgumentException in order to fast fail and prevent server-side errors being thrown and retried.

      Attachments

        1. HBASE-16540.002.patch
          4 kB
          Dustin Pho
        2. HBASE-16540.patch
          4 kB
          Dustin Pho

        Activity

          People

            pho Dustin Pho
            ghelmling Gary Helmling
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: