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);
}
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);
}
}
}