XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Currently the following is used to in ZKController.fireListeners()

      new Thread(() -> {
        log.debug("Running listeners for {}", zkDir);
        for (final Runnable listener : listenersCopy) {
          try {
            listener.run();
          } catch (Exception e) {
            log.warn("listener throws error", e);
          }
        }
      }, "ZKEventListenerThread").start(); 

      This causes leaked threads in a variety of tests. We should either start to use a separate thread pool for this (and possibly run each listener in a separate thread), or merely run it in the same thread.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              houston Houston Putman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: