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

CacheModuleLifecycleListener references are not deleted on cache module restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Major Major
    • None
    • 4.4.4
    • cache

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD