Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5722

Fix ServiceDiscoveryImpl.reset

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • 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)
              gcardosi Gabriele Cardosi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: