Issue while logging MDC values with Jetty 12
Opened this issue · 0 comments
narharim commented
We have a service A that initiates an API call to another service B. In response service B transfers zip file in chunk to service A. We have written a custom response listener which transfer chunk from service A to its client without storing it in buffer.
while doing so when ever connection is aborted from client of service A, key-value pair which we are inserting into MDC map are getting cleared out and we are unable to log those key-value.
for example
MDC.put(ABORTED, "true") is not printed in log
Attached ref code
logging.txt
handler.txt
Jetty version
Jetty 12.0.8
Java vendor/version
Amazon Corretto 17.0.9
logback-access version
2.0.2
Note: we are using kotlin as our programming language