Description
Two cases in which TraceScope is returned but never closed (it implements Closeable.
core/.../Trace.java
public static void off() { org.apache.htrace.Span span = org.apache.htrace.Trace.currentSpan(); if (span != null) { span.stop(); org.apache.htrace.Tracer.getInstance().continueSpan(null); } }
trace/.../Trace.java
public static void endThread(Span span) { if (span != null) { span.stop(); org.apache.htrace.Tracer.getInstance().continueSpan(null); } }
billie.rinaldi do you know if there's a reason that these aren't getting closed or is it just a bug?