piotrp commented on code in PR #25813:
URL: https://github.com/apache/flink/pull/25813#discussion_r1890959925
##########
flink-core/src/main/java/org/apache/flink/util/MdcUtils.java:
##########
@@ -45,7 +45,13 @@ public class MdcUtils {
public static MdcCloseable withContext(Map<String, String> context) {
final Map<String, String> orig = MDC.getCopyOfContextMap();
MDC.setContextMap(context);
- return () -> MDC.setContextMap(orig);
+ return () -> {
Review Comment:
I added a simple mocked test so that we can see how it looks with only
mocking
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]