Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-550

Reduce unnecessary acquire operation in AbstractSubscriptionManager and BookkeeperPersistenceManager

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hedwig-server
    • Labels:
      None

      Description

      After topic ownership is figured out by topic manager, AbstractSubscriptionManager and BookkeeperPersistenceManage will be notified to acquire topic. Then both AbstractSubscriptionManager and BookkeeperPersistenceManage have a first check on whether the topic is successfully acquired before, if yes the acquire op response right away, or else they will read metadata and do further jobs.

      The problem is that acquire operation may take very long time to finish (especially for BookkeeperPersistenceManage), so if many requests of a same topic come to Hub, all of these request will issue a new acquire operation. The situation may go very very bad if there are many sub/closesub and metadata storage get small throughput.

        Attachments

          Activity

            People

            • Assignee:
              jiannan Jiannan Wang
              Reporter:
              jiannan Jiannan Wang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment