You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2015/06/28 09:47:04 UTC

[jira] [Updated] (QPID-6613) Simplify creation of per-test log file using Logback's SiftAppender

     [ https://issues.apache.org/jira/browse/QPID-6613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Keith Wall updated QPID-6613:
-----------------------------
    Attachment: 0001-QPID-6613-Use-Logback-s-sift-appender-for-per-test-l.patch

Working patch for comment - all tests passing.

One wrinkle - ManagementLoggingTest#testManagementUserOpenClose may fail and has been excluded.  Issue is that RMI threads do not get shutdown between tests, so may be reused by later tests.  As the SiftAppender configuration relies on MDC inheritance  between threads [1], this causes the MNG-1007/8 (logon/logoff events) to be written to an older log file.  Shutting down RMI completely would resolve the problem (not sure what we are doing wrong??), or working around by submitting to the writing of logon/logoff events to the Broker's config thread (whose pool will have been created by a thread with the create MDC).

[1] http://logback.qos.ch/manual/mdc.html#managedThreads

> Simplify creation of per-test log file using Logback's SiftAppender
> -------------------------------------------------------------------
>
>                 Key: QPID-6613
>                 URL: https://issues.apache.org/jira/browse/QPID-6613
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Tests
>            Reporter: Keith Wall
>            Assignee: Keith Wall
>             Fix For: 6.0 [Java]
>
>         Attachments: 0001-QPID-6613-Use-Logback-s-sift-appender-for-per-test-l.patch
>
>
> Use Logback's SiftAppender with a discriminator formed with the fully qualified classname and test name to produce the per-test log file.  For tests using many (separate process Brokers), use a SocketAppender and ServerSocketReceiver to organise for the consolidation of all output in the test log.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org