Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1522

SocketAppender blocks ReconfigureOnChangeTask

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 1.3.0-alpha4
    • logback-classic
    • None
    • Windows 10 Pro

       

    Description

      When logback.xml configures a scan period it starts a repeating thread ReconfigureOnChangeTask using context.getScheduledExecutorService().

      When starting a SocketAppender it uses the same getContext().getScheduledExecutorService() (in AbstractSocketAppender) to run the background Thread. 

      Unfortuntely, this scheduledExecutorService has only one thread in its core pool and cannot add additional workers. So when starting the socketAppender the ReconfigureOnChangeTask  is blocked an will never check the configuration file for updates.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            wdeifel Wolfgang Deifel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: