InheritableThreadLocal values are unexpectedly shared across threads when enabling access-log in EAP undertow

Solution Verified - Updated -

Issue

  • Our application sets InheritableThreadLocals in its HTTP request processing. When we enable EAP's access-log in the undertow subsystem, we begin to see issues as the InheritableThreadLocals values are shared across threads and requests or a request's InheritableThreadLocal value is cleared unexpectedly by another to cause NullPointerExceptions.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 7.x
    • 8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content