any movement on fixing the breakage of logback MDC with CompletableFutures?

Dean Hiller dhiller at twitter.com
Thu Jul 19 04:23:06 UTC 2018


I wanted to revisit the fact that MDC of logback broke in java's
CompletableFuture while it works just fine with scala twitter Future
because of their Local.scala class that acts like a ThreadLocal BUT for
Futures transferring context.

There is basically no way to fix it except by threading in some sort of
LocalFuture.java into the CompletableFutures which would rock.

thanks for any info there,  (I would rather not switch this whole project
to scala and having the MDC in logback broken is extremely annoying)

https://stackoverflow.com/questions/37933713/does-completablefuture-have-a-corresponding-local-context

thanks
Dean


More information about the core-libs-dev mailing list