History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3054
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Piotr Jedrys
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Measurement data missing after QuickBuild upgrade to 7.0.16

Created: 03/Oct/17 10:09 AM   Updated: 13/Oct/17 10:54 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.25

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
After upgrading from QuickBuild 6.0.x to QuickBuild 7.0.16, we found out that metrics are not working anymore. The problem is because of :

Duplicate entry '1507021838789-xxx:8810-disk.usage./opt/quic' for key 'PK_DATA_R04'
quickbuild_master_1 | jvm 1 | Query is: /* insert com.pmease.quickbuild.model.MeasurementDataR04 */ insert into QB_MEASUREMENT_DATAR04 (QB_METRIC_NAME, QB_SOURCE, QB_TIMESTAMP, QB_VALUE, QB_ID) values (?, ?, ?, ?, ?), parameters ['disk.usage./opt/quickbuild','xxx:8810',1507021838789,0.1307280165131342,21857]

the strangest part is that the table is empty:
mysql> select * from QB_MEASUREMENT_DATAR04;
Empty set (0.00 sec)

and the manual insert works correctly:
mysql> insert into QB_MEASUREMENT_DATAR04 (QB_METRIC_NAME, QB_SOURCE, QB_TIMESTAMP, QB_VALUE, QB_ID) values ('disk.usage./opt/quickbuild','xxx:8810',1507021838789,0.1307280165131342,21857);
Query OK, 1 row affected (0.00 sec)

mysql> select * from QB_MEASUREMENT_DATAR04; +-------+----------------------------+-------------------------------+---------------+--------------------+
| QB_ID | QB_METRIC_NAME | QB_SOURCE | QB_TIMESTAMP | QB_VALUE |
+-------+----------------------------+-------------------------------+---------------+--------------------+
| 21857 | disk.usage./opt/quickbuild | xxx:8810 | 1507021838789 | 0.1307280165131342 |
+-------+----------------------------+-------------------------------+---------------+--------------------+
1 row in set (0.00 sec)


 All   Comments   Work Log   Change History      Sort Order:
No work has yet been logged on this issue.