Merge pull request #693 from metamx/handle-arithmetic-ex

Handle arithmetic ex - additional commit for PR #692
This commit is contained in:
Gian Merlino 2014-08-20 23:24:06 -07:00
commit 92b0611afb
1 changed files with 10 additions and 1 deletions

View File

@ -623,7 +623,16 @@ public class RealtimePlumber implements Plumber
final long windowMillis = windowPeriod.toStandardDuration().getMillis();
log.info("Starting merge and push.");
DateTime minTimestampAsDate = new DateTime(Math.max(windowMillis, rejectionPolicy.getCurrMaxTime().getMillis()) - windowMillis);
DateTime minTimestampAsDate = segmentGranularity.truncate(
new DateTime(
Math.max(
windowMillis,
rejectionPolicy.getCurrMaxTime()
.getMillis()
)
- windowMillis
)
);
long minTimestamp = minTimestampAsDate.getMillis();
log.info("Found [%,d] sinks. minTimestamp [%s]", sinks.size(), minTimestampAsDate);