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

Add support in ChainWalEntryFilter to filter Entry if all cells get filtered through WalCellFilter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 1.3.6, 2.3.3
    • 3.0.0-alpha-1
    • None
    • None

    Description

      ChainWalEntryFilter applies the filter on entry followed by filter on cells. 
      If filter on cells remove all the cells from the entry, we should add an option in chainwalentryfilter to filter the entry as well. 

      Here is the snippet for ChainWalEntryFilter filter. After filterCells we should check if there is any cells remaining in the entry. 

      @Override
      public Entry filter(Entry entry) {
       for (WALEntryFilter filter : filters) {
       if (entry == null) {
       return null;
       }
       entry = filter.filter(entry);
       }
       filterCells(entry);
       return entry;
      }

       Customer replication endpoints may use this flag.

      Attachments

        1. HBASE-23309.branch-1.patch
          4 kB
          Sandeep Pal
        2. HBASE-23309.branch-2.patch
          4 kB
          Sandeep Pal
        3. HBASE-23309.patch
          4 kB
          Sandeep Pal

        Issue Links

          Activity

            People

              sandeep.pal Sandeep Pal
              sandeep.pal Sandeep Pal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: