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

Logging deployments that contain a logging configuration file do not clear the log context

    XMLWordPrintable

Details

    Description

      When a deployment that contains it's own logging configuration is undeployed the LogContext used for the deployment is not completely cleared. A GC cycle will end up doing this, but there is potential for issues, mainly on Windows, if a file handler is used during a redeploy. The file could be in-use by the old context.

      During undeploy we should probably get the LogContextConfiguration and remove all the loggers, handlers, formatters and error managers.

      Note that the only place I've seen this be an actual issue is in the test suite on Windows when a file handler is used and after the test is complete there is an attempt to delete the file.

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: