Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2195

Use daemon threads in default ScheduledExecutorService

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.18.1.Final
    • 1.15.5.Final, 1.16.1.Final
    • None
    • None

    Description

      A little context: in Infinspan Server CLI, we have a "shutdown" command to stop the server. It is pretty basic and it makes sure the main thread returns. However, I have 1 thread from Elytron thread pool preventing the process to stop. As a temporary (or not) workaround, I have added SecurityDomain.getScheduledExecutorService().shutdown(); at the end of our code.

      Is it intentional the default ScheduledExecutorService created in [1] to spawn non-daemon threads?

      Infinispan is currently using Elytron 1.15.5.Final

      [1] https://github.com/wildfly-security/wildfly-elytron/blob/1.x/auth/server/base/src/main/java/org/wildfly/security/auth/server/SecurityDomain.java#L1252

      Attachments

        Issue Links

          Activity

            People

              dvilkola@redhat.com Diana Krepinska
              pruivo@redhat.com Pedro Ruivo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: