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

Add the methods to RegionObserver to trigger start/complete restoring WALs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Coprocessors
    • None
    • Reviewed
    • Hide
      Added two hooks around WAL restore.
      preReplayWALs(final ObserverContext<? extends RegionCoprocessorEnvironment> ctx, HRegionInfo info, Path edits)
      and
      postReplayWALs(final ObserverContext<? extends RegionCoprocessorEnvironment> ctx, HRegionInfo info, Path edits)

      Will be called at start and end of restore of a WAL file.
      The other hook around WAL restore (preWALRestore ) will be called before restore of every entry within the WAL file.
      Show
      Added two hooks around WAL restore. preReplayWALs(final ObserverContext<? extends RegionCoprocessorEnvironment> ctx, HRegionInfo info, Path edits) and postReplayWALs(final ObserverContext<? extends RegionCoprocessorEnvironment> ctx, HRegionInfo info, Path edits) Will be called at start and end of restore of a WAL file. The other hook around WAL restore (preWALRestore ) will be called before restore of every entry within the WAL file.

    Description

      In our use case, we write indexes to a index table when restoring WALs. We want to trigger start/complete restoring WALs for initial and end processing for writing indexes.

      Attachments

        1. HBASE-15228.patch
          12 kB
          Toshihiro Suzuki
        2. HBASE-15228-v1.patch
          12 kB
          Toshihiro Suzuki
        3. HBASE-15228-v2.patch
          12 kB
          Toshihiro Suzuki
        4. HBASE-15228-v3.patch
          13 kB
          Toshihiro Suzuki

        Activity

          People

            brfrn169 Toshihiro Suzuki
            brfrn169 Toshihiro Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: