Project

General

Profile

Actions

Bug #5253

closed

SpanToDT timestamp bug

Added by Derik Barseghian over 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
sensor-view
Target version:
Start date:
12/08/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5253

Description

SpanToDT has a bug that Dan and I tracked down today. DataTurbine outputs errors like:

Cannot add frame to gpp, it starts before the end of the previous frame.
End of previous frame: 1.291854708E9 Start of new frame: 1.291854679E9

This is because a line in PeriodicReadFullMetadataThread uses the system that's running SpanToDT's clock:
SpanMetadata.SensorMetadata metadata = new SpanMetadata.SensorMetadata(fullName, new Date(), sensorMetadata);

derik_: why's that line using a new Date()? shouldn't it just use the corresponding sensor date?
crawl: SpanToDT periodically queries all the metadata for each sensor, the frequency set by that arg
crawl: in this case it comes from the control port, not the live metadata port
crawl: the fix is to use the timestamp in the response

Actions

Also available in: Atom PDF