Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-420

Reconsider post-boot logging of management operation errors

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 8.0.0.Alpha1
    • None
    • Management
    • None

    Description

      Currently after boot if there is a failure during a management request we log it at DEBUG or not at all (see AS7-6046 for the not-at-all issue.) The theory is the error is a client request and the proper error reporting is to propagate the error to the client, which we do via the operation response.

      We need to consider logging some errors in the server log as well. Some errors can impact the state of the runtime services, and those kinds of errors should not be invisible in the log.

      A simple approach to this would be to log an ERROR message if the problem happened after Stage.MODEL. Any problems in Stage.MODEL never escape the data structures (i.e. the copy of the model) associated with the operation's OperationContext, and thus have no impact to anyone other than the caller.

      A further refinement to this would be to only report Stage.RUNTIME errors if the operation has taken an action implying mutation of the service container (context.getServiceRegistry(true) or context.removeService(...)).

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: