You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Daniil Kirilyuk (Jira)" <ji...@apache.org> on 2026/10/14 14:20:00 UTC

[jira] [Updated] (QPID-8768) [Broker-J] Remove obsolete LOGBACK-1027 circular-exception workaround

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

Daniil Kirilyuk updated QPID-8768:
----------------------------------
    Fix Version/s: qpid-java-broker-10.2.0

> [Broker-J] Remove obsolete LOGBACK-1027 circular-exception workaround
> ---------------------------------------------------------------------
>
>                 Key: QPID-8768
>                 URL: https://issues.apache.org/jira/browse/QPID-8768
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Broker-J
>    Affects Versions: qpid-java-broker-10.1.0
>            Reporter: Takahashi Kiyoshi
>            Priority: Minor
>             Fix For: qpid-java-broker-10.2.0
>
>
> Broker-J registers {{{}Logback1027WorkaroundTurboFilter{}}}, introduced as part of QPID-7955, to prevent {{StackOverflowError}} when logging exceptions with circular references involving causes or suppressed exceptions. The filter is intended to detect such references and replace the original throwable with a {{StringifiedException}} containing its stack trace as text.
> Logback added native support for circular exception references in 1.3.0-alpha10 and backported the fix to 1.2.11, as documented in the [release notes|https://logback.qos.ch/news-archive.html]. Broker-J already uses Logback 1.6.x, which includes this fix, making the workaround redundant.
> Retaining the workaround adds unnecessary processing and maintenance overhead. Replacing the original throwable with a textual representation also prevents logging components from accessing its original type and cause/suppressed-exception structure.
> I propose removing {{Logback1027WorkaroundTurboFilter}} and the associated registration and cleanup code from {{LogbackLoggingSystemLauncherListener}}.
> Exception logging should rely on Logback’s native support, passing the original throwable without replacement. Exceptions with circular references should be logged without {{StackOverflowError}}, using Logback’s standard rendering, including circular-reference markers.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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