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

stopServingSubscriber in delivery manager should remove stub callbacks in ReadAheadCache

    Details

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

      Description

      Currently each subscriber would insert stub callback to wait newly published messages or scanning result. for waiting scan result, it was OK. the callback would be triggered and removed after scan callback arrived. but if it was wait newly published, it would be a problem. if sub/closesub/sub become frequent, closesub doesn't remove the installed callback, so the stub callbacks are accumulated, which cause the memory increased, finally OOM.

      it would be better to remove its installed stub callback when closesub.

        Attachments

        1. BOOKKEEPER-529.diff
          20 kB
          Sijie Guo
        2. BOOKKEEPER-529.diff
          21 kB
          Sijie Guo

          Issue Links

            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: