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

FilterListWithAND can swallow SEEK_NEXT_USING_HINT

    XMLWordPrintableJSON

Details

    Description

      org.apache.hadoop.hbase.filter.FilterListWithAND.filterRowKey(Cell) will return true if ANY of the filters returns true for Filter#filterRowKey().

      However, the SEEK_NEXT_USING_HINT mechanism relies on filterRowKey() returning false, so that filterCell() can return SEEK_NEXT_USING_HINT.

      If none of the filters matches, but one of them returns true for filterRowKey(), then the filter(s) that returned false, so that they can return SEEK_NEXT_USING_HINT in filterCell() never get a chance to return SEEK_NEXT_USING_HINT, and instead of seeking to the hint, FilterListWithAND will do very slow full scan.

      Attachments

        Issue Links

          Activity

            People

              stoty Istvan Toth
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: