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

SocketAppender blocks ReconfigureOnChangeTask

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0-alpha4
    • Fix Version/s: None
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      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

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

              Dates

              Created:
              Updated: