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

Fix ServiceDiscoveryImpl.reset

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • None
    • None
    • None

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              gcardosi Gabriele Cardosi
              gcardosi Gabriele Cardosi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: