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

HBaseInterClusterReplicationEndpoint retry logic is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.0.2, 1.2.0, 1.2.1, 0.98.16, 2.0.0
    • None
    • Replication
    • None

    Description

      In HBaseInterClusterReplicationEndpoint, we do something like this:

      entryLists.remove(f.get());
      

      where f.get() returns an ordinal number which represents the index of the element in the entryLists that just succeeded replicating. We remove these entries because we want to retry with remaining elements in the list in case of a failure. Since entryLists is an ArrayList, the subsequent elements are shifted left in case we remove an element. This breaks the intended functionality. The fix is to reverse sort the ordinals and then perform the deletion in one go.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ashu210890 Ashu Pachauri
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: