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

RegionScannerImpl filters should not be reset if a partial Result is returned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      In RegionScannerImpl the filters get reset during calls to nextRaw:

      public NextState nextRaw(List<Cell> outResults, int batchLimit, long remainingResultSize)
              throws IOException {
        ...
        resetFilters();
      
        if (isFilterDoneInternal()) {
        ...
      }
      

      This creates a problem when returning partial Results because filters should only be reset in between rows (i.e. after all of the cells for a particular row have been returned). If a partial Result is returned, there are still cells in the row that have not been evaluated yet and we should avoid resetting the filter since it will wipe away all state information for that filter.

      Attachments

        1. HBASE-13193-v1.patch
          14 kB
          Jonathan Lawlor
        2. HBASE-13193-v2.patch
          15 kB
          Jonathan Lawlor
        3. HBASE-13193-v3.patch
          16 kB
          Jonathan Lawlor
        4. HBASE-13193-v4.patch
          16 kB
          Jonathan Lawlor
        5. HBASE-13193-v4.patch
          16 kB
          Jonathan Lawlor
        6. HBASE-13193-v4.patch
          16 kB
          Jonathan Lawlor
        7. HBASE-13193-v5.patch
          16 kB
          Jonathan Lawlor

        Issue Links

          Activity

            People

              jonathan.lawlor Jonathan Lawlor
              jonathan.lawlor Jonathan Lawlor
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: