Bookkeeper
  1. Bookkeeper
  2. BOOKKEEPER-529

stopServingSubscriber in delivery manager should remove stub callbacks in ReadAheadCache

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development