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

AbstractSubscriptionManager#AcquireOp read subscriptions every time even it already owned the topic

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: hedwig-server
    • Labels:
      None

      Description

          private class AcquireOp extends TopicOpQueuer.AsynchronousOp<Void> {
              public AcquireOp(ByteString topic, Callback<Void> callback, Object ctx) {
                  queuer.super(topic, callback, ctx);
              }   
      
              @Override
              public void run() {
                  if (top2sub2seq.containsKey(topic)) {
                      cb.operationFinished(ctx, null);
                  }   
      
                  readSubscriptions(topic, new Callback<Map<ByteString, InMemorySubscriptionState>>() {
      

      it doesn't return after it found subscriptions and callback.

        Attachments

        1. BOOKKEEPER-532.diff
          0.8 kB
          Sijie Guo

          Activity

            People

            • Assignee:
              hustlmsp Sijie Guo
              Reporter:
              hustlmsp Sijie Guo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: