Class SystemTableWALEntryFilter

java.lang.Object
org.apache.hadoop.hbase.replication.SystemTableWALEntryFilter
All Implemented Interfaces:
WALEntryFilter

@Private public class SystemTableWALEntryFilter extends Object implements WALEntryFilter
Skips WAL edits for all System tables including hbase:meta except hbase:acl. As of now, only 2 tables can be allowed for replication - hbase:acl and hbase:labels. Other tables which not be replicated are 1. hbase:meta - not to be replicated 2. hbase:canary - for current cluster 3. hbase:namespace - Deprecated and moved to meta 4. hbase:quota - related to namespace, quota for the current cluster usage 5. hbase:rsgroup - contains hostnames
  • Constructor Details

  • Method Details

    • filter

      public WAL.Entry filter(WAL.Entry entry)
      Description copied from interface: WALEntryFilter

      Applies the filter, possibly returning a different Entry instance. If null is returned, the entry will be skipped.

      Notice that you are free to modify the cell list of the give entry, but do not change the content of the cell, it may be used by others at the same time(and usually you can not modify a cell unless you cast it to the implementation class, which is not a good idea).

      Specified by:
      filter in interface WALEntryFilter
      Parameters:
      entry - Entry to filter
      Returns:
      a (possibly modified) Entry to use. Returning null or an entry with no cells will cause the entry to be skipped for replication.