Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4333

async-handler not working / logging.properties incompletely updated

    Details

    • Steps to Reproduce:
      Hide
      1. Set up a WildFly 10 or 11 (other versions might be affected, too, but I didn't test).
      2. Start this WildFly and deploy sth., i.e. use it normally.
      3. Stop the server.
      4. Change the standalone.xml file:
        1. Rename the regular "FILE" logging-handler to "FILE.sync".
        2. Add a new async-handler like this:

          <async-handler name="FILE">
          <queue-length value="512"/>
          <overflow-action value="block"/>
          <subhandlers>
          <handler name="FILE.sync"/>
          </subhandlers>
          </async-handler>

      5. Start the WildFly again and wait a bit until it updates the logging.properties.
      6. Check the logging.properties: Both handlers exist, now, hence it has definitely been written, but: It lacks the sub-handlers for the "FILE" handler.
      7. Check the log file: Nothing is logged, anymore.

      And here the following steps to work around this bug:

      1. Stop the WildFly, again.
      2. Delete the logging.properties file.
      3. Start the WildFly, again and wait for the logging.properties to be recreated.
      4. Check the logging.properties and the log file: Now, everything is correct.
      Show
      Set up a WildFly 10 or 11 (other versions might be affected, too, but I didn't test). Start this WildFly and deploy sth., i.e. use it normally. Stop the server. Change the standalone.xml file: Rename the regular "FILE" logging-handler to "FILE.sync". Add a new async-handler like this: <async-handler name="FILE"> <queue-length value="512"/> <overflow-action value="block"/> <subhandlers> <handler name="FILE.sync"/> </subhandlers> </async-handler> Start the WildFly again and wait a bit until it updates the logging.properties . Check the logging.properties : Both handlers exist, now, hence it has definitely been written, but: It lacks the sub-handlers for the "FILE" handler. Check the log file: Nothing is logged, anymore. And here the following steps to work around this bug: Stop the WildFly, again. Delete the logging.properties file. Start the WildFly, again and wait for the logging.properties to be recreated. Check the logging.properties and the log file: Now, everything is correct.

      Description

      The logging.properties file which is generated from the standalone.xml is not correctly updated. When switching to asynchronous logging by renaming the "FILE" handler to "FILE.sync" and then introducing an async-handler named "FILE" referencing "FILE.sync" in its subhandlers, the logging.properties then lacks the following line:

      handler.FILE.handlers=FILE.sync

      I tested this with WildFly 10 and 11, but this bug might affect more (and newer) versions.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jamezp James Perkins
                Reporter:
                nlmarco Marco Schulze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: