mirror of https://github.com/apache/druid.git
more logging
This commit is contained in:
parent
e7b6b5c2af
commit
c4b990bb27
|
@ -9,6 +9,7 @@ import io.druid.segment.IndexGranularity;
|
||||||
import io.druid.segment.realtime.FireDepartmentMetrics;
|
import io.druid.segment.realtime.FireDepartmentMetrics;
|
||||||
import io.druid.segment.realtime.Schema;
|
import io.druid.segment.realtime.Schema;
|
||||||
import io.druid.server.coordination.DataSegmentAnnouncer;
|
import io.druid.server.coordination.DataSegmentAnnouncer;
|
||||||
|
import org.joda.time.DateTime;
|
||||||
import org.joda.time.Duration;
|
import org.joda.time.Duration;
|
||||||
import org.joda.time.Period;
|
import org.joda.time.Period;
|
||||||
|
|
||||||
|
@ -83,6 +84,8 @@ public class FlushingPlumber extends RealtimePlumber
|
||||||
|
|
||||||
protected void flushAfterDuration(final long truncatedTime, final Sink sink)
|
protected void flushAfterDuration(final long truncatedTime, final Sink sink)
|
||||||
{
|
{
|
||||||
|
log.info("Abandoning segment at %s", new DateTime().plusMillis(flushDuration.toPeriod().getMillis()));
|
||||||
|
|
||||||
ScheduledExecutors.scheduleWithFixedDelay(
|
ScheduledExecutors.scheduleWithFixedDelay(
|
||||||
flushScheduledExec,
|
flushScheduledExec,
|
||||||
flushDuration,
|
flushDuration,
|
||||||
|
|
Loading…
Reference in New Issue