mirror of https://github.com/apache/druid.git
more logs
This commit is contained in:
parent
9cdfea31b2
commit
424e899760
|
@ -63,7 +63,7 @@ public class GracefulShutdownFirehose implements Firehose
|
|||
final long end = segmentGranularity.increment(truncatedNow) + windowMillis;
|
||||
final Duration timeUntilShutdown = new Duration(System.currentTimeMillis(), end);
|
||||
|
||||
log.info("Shutting down in %s", timeUntilShutdown);
|
||||
log.info("Shutting down in %s. Time at shutdown: ~%s", timeUntilShutdown, new DateTime(end));
|
||||
|
||||
ScheduledExecutors.scheduleWithFixedDelay(
|
||||
scheduledExecutor,
|
||||
|
|
|
@ -308,23 +308,25 @@ public class RealtimePlumberSchool implements PlumberSchool
|
|||
|
||||
while (!sinks.isEmpty()) {
|
||||
try {
|
||||
Duration retry = new Duration("PT60S");
|
||||
log.info(
|
||||
"Cannot shut down yet! Sinks for %s remain!",
|
||||
"Cannot shut down yet! Sinks for %s remain! Next retry in %s",
|
||||
Joiner.on(", ").join(
|
||||
Iterables.transform(
|
||||
sinks.values(),
|
||||
new Function<Sink, DataSegment>()
|
||||
new Function<Sink, String>()
|
||||
{
|
||||
@Override
|
||||
public DataSegment apply(Sink input)
|
||||
public String apply(Sink input)
|
||||
{
|
||||
return input.getSegment();
|
||||
return input.getSegment().getIdentifier();
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
),
|
||||
retry
|
||||
);
|
||||
Thread.sleep(60000);
|
||||
Thread.sleep(retry.getMillis());
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
throw Throwables.propagate(e);
|
||||
|
@ -455,6 +457,7 @@ public class RealtimePlumberSchool implements PlumberSchool
|
|||
try {
|
||||
segmentAnnouncer.unannounceSegment(sink.getSegment());
|
||||
FileUtils.deleteDirectory(computePersistDir(schema, sink.getInterval()));
|
||||
log.info("Removing sinkKey %d for segment %s", sinkKey, sink.getSegment().getIdentifier());
|
||||
sinks.remove(sinkKey);
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue