Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-28910

CDC From Mysql To Hbase Bugs

    XMLWordPrintableJSON

Details

    Description

      I use Flink for CDC from Mysql to Hbase.

      The problem I encountered is that the Mysql record is updated (not deleted), but the record in hbase is deleted sometimes.

      I tried to analyze the problem and found the reason as follows:

      The update action of Mysql will be decomposed into delete + insert by Flink.
      The Hbase connector uses a mutator to handle this set of actions.

      However, if the order of these actions is not actively set, the processing of the mutator will not guarantee the order of execution.

      Therefore, when the update of Mysql is triggered, it is possible that hbase actually performed the actions in the order of put + delete, resulting in the data being deleted.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              GanLuLu TE
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: