Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3860

CacheModuleLifecycleListener references are not deleted on cache module restart

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not an issue
    • Affects Version/s: 4.4.4
    • Fix Version/s: None
    • Component/s: cache
    • Labels:

      Description

      I have a class listening to the cache module startup event like:

      CacheModule.getInstance().register(new CacheModuleLifecycleListener() {
      public void onCacheModuleStart()

      { doStuff(); }

      });

      If a cache module reload is triggered (by changing content in the cache config), doStuff() will be called twice, and after again triggering a reload, doStuff() will be called three times.

      I could work around this by overriding hashCode() and equals() in my CacheModuleLifecycleListener, but thought this could be fixed anyway.

      Will it need a reset of the listeners Map in info.magnolia.module.cache.CacheModule#stop ?

      Regards,
      Stefan

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sbaur Stefan Baur
            Visible to:
            Daniel Kummer, Maribel Dapeton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: