Skip to content

Commit ce60ae8

Browse files
committed
clear at the end of process()
1 parent 802faf0 commit ce60ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/executor/EventHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ public void run() {
9999
.setParent(Context.current().with(parent)).startSpan();
100100
// assume that this is the top of an execution on a new or reused thread, that we're safe to
101101
// blast any existing MDC state.
102-
MDC.clear();
103-
MDC.put("event_type", eventType.toString());
104102
try (Scope scope = span.makeCurrent()) {
103+
MDC.put("event_type", eventType.toString());
105104
process();
106105
} catch (Throwable t) {
107106
handleException(t);
108107
} finally {
109108
span.end();
109+
MDC.clear();
110110
}
111111
}
112112

0 commit comments

Comments
 (0)