mirror of https://github.com/apache/druid.git
RealtimeIndexTask: Close firehose after finishing plumbing job
This commit is contained in:
parent
ed56bc52e9
commit
dfe91d3bf9
|
@ -265,8 +265,6 @@ public class RealtimeIndexTask extends AbstractTask
|
|||
throw Throwables.propagate(e);
|
||||
}
|
||||
finally {
|
||||
Closeables.closeQuietly(firehose);
|
||||
|
||||
if (normalExit) {
|
||||
try {
|
||||
plumber.persist(firehose.commit());
|
||||
|
@ -275,6 +273,9 @@ public class RealtimeIndexTask extends AbstractTask
|
|||
catch (Exception e) {
|
||||
log.makeAlert(e, "Failed to finish realtime task").emit();
|
||||
}
|
||||
finally {
|
||||
Closeables.closeQuietly(firehose);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue