mirror of https://github.com/apache/druid.git
close stuff
This commit is contained in:
parent
26a16fb4fe
commit
724212381c
|
@ -22,6 +22,7 @@ package org.apache.druid.quidem;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import org.apache.druid.guice.LazySingleton;
|
import org.apache.druid.guice.LazySingleton;
|
||||||
import org.apache.druid.java.util.common.StringUtils;
|
import org.apache.druid.java.util.common.StringUtils;
|
||||||
|
|
||||||
import javax.inject.Named;
|
import javax.inject.Named;
|
||||||
import javax.ws.rs.GET;
|
import javax.ws.rs.GET;
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
||||||
|
|
|
@ -53,6 +53,10 @@ public class QuidemRecorder implements AutoCloseable, DruidHook<String>
|
||||||
@Override
|
@Override
|
||||||
public void close()
|
public void close()
|
||||||
{
|
{
|
||||||
|
if (printStream != null) {
|
||||||
|
printStream.close();
|
||||||
|
printStream = null;
|
||||||
|
}
|
||||||
DruidHook.unregister(DruidHook.SQL, this);
|
DruidHook.unregister(DruidHook.SQL, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue