From 179170224d6f8b547a7b6ba2c2fe3d1b17bde65b Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Fri, 8 Aug 2014 11:20:36 -0700 Subject: [PATCH] Fix conditional. --- .../java/io/druid/segment/realtime/plumber/RealtimePlumber.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/io/druid/segment/realtime/plumber/RealtimePlumber.java b/server/src/main/java/io/druid/segment/realtime/plumber/RealtimePlumber.java index 0da1a9a376d..bf1b575ff41 100644 --- a/server/src/main/java/io/druid/segment/realtime/plumber/RealtimePlumber.java +++ b/server/src/main/java/io/druid/segment/realtime/plumber/RealtimePlumber.java @@ -356,7 +356,7 @@ public class RealtimePlumber implements Plumber log.makeAlert(e, "Failed to persist merged index[%s]", schema.getDataSource()) .addData("interval", interval) .emit(); - if (!shuttingDown) { + if (shuttingDown) { // We're trying to shut down, and this segment failed to push. Let's just get rid of it. // This call will also delete possibly-partially-written files, so we don't need to do it explicitly. abandonSegment(truncatedTime, sink);