MDC Context getting copied to only one thread of ForkJoinPool
问题 I want to pass MDC context to threads of the ForkJoinPool as I need to print the requestId populated in the MDCContextMap in all the spawned threads logs for better debugging. I am using the following solution for this: How to use MDC with ForkJoinPool?. I am using the pool as: final ForkJoinPool mdcPool = new MdcForkJoinPool(30); mdcPool.submit(() -> ruleset.getOperationList().parallelStream().forEach(operation -> { log.info("Sample log line"); But from the logs it looks like MDC Context is