Because when you use `getCopyOfContextMap` you get all of the properties and you still have to unset all of them and then put all of what's in the copy. However, that doesn't work as well if you're incrementally adding/removing a subset of the contexts, and it doesn't work if there are other components (e.g., connectors) that are adding contexts after we have.
The current approach is a bit more complicated, but it should be a lot easier to be completely independent of all other modifications of the MDC context map. [ Full content available at: https://github.com/apache/kafka/pull/5743 ] This message was relayed via gitbox.apache.org for [email protected]
