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

VerifyRep by snapshot need not to restore snapshot for each mapper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-2
    • 2.0.0-beta-2, 2.0.0
    • Replication
    • None
    • Reviewed

    Description

      In following method stack, seems like each mapper task will restore the snapshot. If we verify replication by a snapshot which has many hfiles, then we will take long time to restore snapshot. In our cluster, we took ~30min for the snapshot restoring when verify a big table.

      Verifier.map
          |-------->  replicatedScanner = new TableSnapshotScanner(...)
                                                                      |-------->  TableSnapshotScanner.init()
                                                                                                |-----> RestoreSnapshotHelper.copySnapshotForScanner
      

      Attachments

        1. HBASE-18806.v5.patch
          23 kB
          Zheng Hu
        2. HBASE-18806.v4.patch
          22 kB
          Zheng Hu
        3. HBASE-18806.v4.patch
          23 kB
          Zheng Hu
        4. HBASE-18806.v3.patch
          23 kB
          Zheng Hu
        5. HBASE-18806.v3.patch
          23 kB
          Zheng Hu
        6. HBASE-18806.v2.patch
          23 kB
          Zheng Hu
        7. HBASE-18806.v1.patch
          20 kB
          Zheng Hu

        Issue Links

          Activity

            People

              openinx Zheng Hu
              openinx Zheng Hu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: