RealtimeIndexTask: Close firehose after finishing plumbing job

This commit is contained in:
Gian Merlino 2013-03-19 18:02:23 -07:00
parent ed56bc52e9
commit dfe91d3bf9
1 changed files with 3 additions and 2 deletions

View File

@ -265,8 +265,6 @@ public class RealtimeIndexTask extends AbstractTask
throw Throwables.propagate(e); throw Throwables.propagate(e);
} }
finally { finally {
Closeables.closeQuietly(firehose);
if (normalExit) { if (normalExit) {
try { try {
plumber.persist(firehose.commit()); plumber.persist(firehose.commit());
@ -275,6 +273,9 @@ public class RealtimeIndexTask extends AbstractTask
catch (Exception e) { catch (Exception e) {
log.makeAlert(e, "Failed to finish realtime task").emit(); log.makeAlert(e, "Failed to finish realtime task").emit();
} }
finally {
Closeables.closeQuietly(firehose);
}
} }
} }