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

Replication keeps accumulating znodes

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.3.0, 2.0.0
    • 1.3.0, 2.0.0
    • Replication
    • None
    • Reviewed

    Description

      If there is an error while creating the replication source on adding the peer, the source if not added to the in memory list of sources but the replication peer is.
      However, in such a scenario, when you remove the peer, it is deleted from zookeeper successfully but for removing the in memory list of peers, we wait for the corresponding sources to get deleted (which as we said don't exist because of error creating the source).
      The problem here is the ordering of operations for adding/removing source and peer.
      Modifying the code to always remove queues from the underlying storage, even if there exists no sources also requires a small refactoring of TableBasedReplicationQueuesImpl to not abort on removeQueues() of an empty queue

      Attachments

        1. HBASE-16096.patch
          6 kB
          Joseph
        2. HBASE-16096-branch-1.patch
          5 kB
          Joseph

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Vegetable26 Joseph
            ashu210890 Ashu Pachauri
            Votes:
            0 Vote for this issue
            Watchers:
            8 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment