Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20046 Reconsider the implementation for serial replication
  3. HBASE-20148

Make serial replication as a option for a peer instead of a table

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.1.0
    • Replication
    • None
    • Incompatible change, Reviewed
    • Hide
      A new method setSerial has been added to the interface ReplicationPeerConfigBuilder which is marked as IA.Public. This interface is not supposed to be implemented by client code, but if you do, this will be an incompatible change as you need to add this method to your implementation too.
      Show
      A new method setSerial has been added to the interface ReplicationPeerConfigBuilder which is marked as IA.Public. This interface is not supposed to be implemented by client code, but if you do, this will be an incompatible change as you need to add this method to your implementation too.

    Description

      Discussed with zghaobac and openinx offline, HBASE-20147 can only be solved by adding new stages when creating a new replication peer. It will also effect he processing even if you do not have any table with serial replication. And also, the new logic introduced in ReplicationSource related classes will also be executed even if you do not have serial replication tables.

      So, we think that it maybe a better choice to move the option to ReplicationPeerConfig. Since if there is one table in the peer requires serial replication, then all the tables in this peer will be automatically 'serial' since the wal for these tables are mixed with the one which requires serial replication.

      Attachments

        1. HBASE-20148-v3.patch
          29 kB
          Duo Zhang
        2. HBASE-20148-v2.patch
          29 kB
          Duo Zhang
        3. HBASE-20148-v1.patch
          26 kB
          Duo Zhang
        4. HBASE-20148.patch
          24 kB
          Duo Zhang

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: