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

Provide a switch that allows avoiding reopening all regions when modifying a table to prevent RIT storms.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1
    • 2.6.0, 3.0.0-beta-1, 2.5.7
    • master, shell
    • None
    • Hide
      New APIs are added to Admin, AsyncAdmin, and hbase shell to allow modifying a table without reopening all regions. Care should be used in using this API, as regions will be in an inconsistent state until they are all reopened. Whether this matters depends on the change, and some changes are disallowed (such as enabling region replication or adding/removing a column family).
      Show
      New APIs are added to Admin, AsyncAdmin, and hbase shell to allow modifying a table without reopening all regions. Care should be used in using this API, as regions will be in an inconsistent state until they are all reopened. Whether this matters depends on the change, and some changes are disallowed (such as enabling region replication or adding/removing a column family).

    Description

      Under normal circumstances, modifying a table will cause all regions belonging to the table to enter RIT. Imagine the following two scenarios:

      1. Someone entered the wrong configuration (e.g. negative 'hbase.busy.wait.multiplier.max' value) when altering the table, causing thousands of online regions to fail to open, leading to online accidents.
      2. Modify the configuration of a table, but this modification is not urgent, the regions are not expected to enter RIT immediately.

      'alter_lazy' is a new command to modify a table without reopening any online regions except those regions were assigned by other threads or split etc.

       

      Provide an optional lazy_mode for the alter command to modify the TableDescriptor without the region entering the RIT. The modification will take effect when the region is reopened.

      Attachments

        Activity

          People

            GeorryHuang Zhuoyue Huang
            GeorryHuang Zhuoyue Huang
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: