Resolved a trace where a timestamp had an faulty offset of -1 in the aggregation deamon
This commit is contained in:
parent
6357e4519f
commit
5f5597dae4
1 changed files with 5 additions and 1 deletions
|
|
@ -110,7 +110,11 @@ public class SensorDataAggregatorDaemon implements HalDaemon {
|
||||||
long latestCompletePeriodEndTimestamp = new UTCTimePeriod(aggregationStartTime, aggrPeriodLength).getPreviosPeriod().getEndTimestamp();
|
long latestCompletePeriodEndTimestamp = new UTCTimePeriod(aggregationStartTime, aggrPeriodLength).getPreviosPeriod().getEndTimestamp();
|
||||||
long oldestPeriodStartTimestamp = new UTCTimePeriod(aggregationStartTime-ageLimitInMs, aggrPeriodLength).getStartTimestamp();
|
long oldestPeriodStartTimestamp = new UTCTimePeriod(aggregationStartTime-ageLimitInMs, aggrPeriodLength).getStartTimestamp();
|
||||||
|
|
||||||
logger.fine("evaluating period: "+ maxTimestampFoundForSensor + "=>" + latestCompletePeriodEndTimestamp + " (" + UTCTimeUtility.getDateString(maxTimestampFoundForSensor) + "=>" + UTCTimeUtility.getDateString(latestCompletePeriodEndTimestamp) + ") with expected sample count: " + expectedSampleCount);
|
if(latestCompletePeriodEndTimestamp == oldestPeriodStartTimestamp){
|
||||||
|
logger.fine("no new data to evaluate - aggregation is up to date");
|
||||||
|
}else{
|
||||||
|
logger.fine("evaluating period: "+ (maxTimestampFoundForSensor+1) + "=>" + latestCompletePeriodEndTimestamp + " (" + UTCTimeUtility.getDateString(maxTimestampFoundForSensor+1) + "=>" + UTCTimeUtility.getDateString(latestCompletePeriodEndTimestamp) + ") with expected sample count: " + expectedSampleCount);
|
||||||
|
}
|
||||||
|
|
||||||
stmt = db.getPreparedStatement("SELECT *, 1 AS confidence FROM sensor_data_raw"
|
stmt = db.getPreparedStatement("SELECT *, 1 AS confidence FROM sensor_data_raw"
|
||||||
+" WHERE sensor_id == ?"
|
+" WHERE sensor_id == ?"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue