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

Introduce MetaEditor method that both adds and deletes rows in .META. table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.0
    • None
    • None
    • Reviewed

    Description

      In review of HBASE-7365, MetaEditor.deleteRegions() and MetaEditor.addRegionsToMeta() are used in RestoreSnapshotHandler.java.handleTableOperation() to apply changes to .META.

      I made following suggestion:

      Can we introduce new method in MetaEditor which takes List of Mutation's ?
      The Delete and Put would be grouped and then written to .META. table in one transaction.

      Jon responded:

      I like that idea – then the todo/warning or follow on could refer to that method. When we fix it, it could get used in other multi row meta modifications like splits and table creation/deletion in general.

      See https://reviews.apache.org/r/8674/

      Attachments

        1. HBASE-7501-v1.patch
          3 kB
          Matteo Bertozzi
        2. HBASE-7501-v0.patch
          3 kB
          Matteo Bertozzi

        Activity

          People

            mbertozzi Matteo Bertozzi
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: