Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1501

Fix ServiceDiscoveryImpl.reset

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.10.0.GA
    • 7.9.0.GA
    • BRE
    • None

      In one of the last PR a 

       PriorityMap
      

      has been implemented inside

       org.kie.api.internal.utils.ServiceDiscoveryImpl
      

      But this map is not updated/reset from

       org.kie.api.internal.utils.ServiceDiscoveryImpl.reset()
      

      and that lead to unconsistent situation: cachedServices are removed but they can't be repopulated, because an exception is thrown at

      https://github.com/kiegroup/droolsjbpm-knowledge/blob/3b8c6100f2544987923d929cd929773fdfe40a40/kie-api/src/main/java/org/kie/api/internal/utils/ServiceDiscoveryImpl.java#L216

      This ticket should add a "reset" method inside PriorityMap, and call it inside

       org.kie.api.internal.utils.ServiceDiscoveryImpl
      

            gcardosi Gabriele Cardosi (Inactive)
            rhn-support-mputz Martin Weiler (Inactive)
            Daniel Rosa Daniel Rosa
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: