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

ColumnCountGetFilter & PageFilter not working with FilterList

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.6, 0.95.0
    • 0.94.6, 0.95.0
    • Filters
    • None
    • Cent OS 5.5 distributed hbase cluster. Hadoop 1.0.0, zookeeper 3.4.3

    • Reviewed
    • filter, pagefilter, columncountgetfilter

    Description

      Thanks to Anoop and Ramkrishna, here's what we found with FilterList

      If I use FilterList to include ColumnCountGetFilter among other filters, the returning Result has no keyvalues.

      This problem seems to occur when specified column count is less then actual number of existing columns.

      Also same problem arises with PageFilter

      Following is the code of the problem:

      Configuration conf = HBaseConfiguration.create();
      HTable table = new HTable(conf, "test");
      Get get = new Get(Bytes.toBytes("test00001"));
      FilterList filterList = new FilterList();
      filterList.addFilter(new ColumnCountGetFilter(100));           
      get.setFilter(filterList);
      Result r = table.get(get);
      System.out.println(r.size()); // prints zero
      

      Attachments

        1. TestColumnCountGetFilter.java
          5 kB
          Anoop Sam John
        2. HBASE-6132_94.patch
          7 kB
          Anoop Sam John
        3. HBASE-6132_Trunk.patch
          2 kB
          Anoop Sam John
        4. 6132-trunk-v2.txt
          2 kB
          Ted Yu

        Activity

          People

            anoopsamjohn Anoop Sam John
            benkimkimben Benjamin Kim
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: