Hi, Aaron, Austen and Philip,

This message is about the recent bug found by Aaron and Austen. The unit test sensor data entry missing is caused by a logical error in SensorShell. The code snippet
below increase timestamp by 1 if it equals to the last value.

   long timeStampLong = timeStamp.getTime();

   if (timeStampLong == this.lastTimeStamp) {
     timeStampLong = this.lastTimeStamp + 1;
     timeStamp = new Date(timeStampLong);
   }
   this.lastTimeStamp = timeStampLong;

Here lastTimeStamp is a field variable that holds last timestamp. There is a logical hole in these 5 lines of code. If we have 5 entries in a line with same timestamp
1157169399580, we will have sequence of 1157169399580, 1157169399581,
1157169399580, 1157169399581, 1157169399580.

I will go ahead to fix it and close the Jira issue.

Have a good weekend!
Hongbing

Reply via email to