Bug 1057412
| Summary: | After upgrading to rhev-m 3.3, ETL service aggregation to hourly tables is failing due to tMap_12 NullPointerException | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Aval <avyadav> |
| Component: | ovirt-engine-dwh | Assignee: | Yaniv Lavi <ylavi> |
| Status: | CLOSED ERRATA | QA Contact: | Barak Dagan <bdagan> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.3.0 | CC: | acathrow, adevolder, audgiri, avyadav, bazulay, bdagan, iheim, jbiddle, jhunsaker, pstehlik, Rhev-m-bugs, scohen, tdosek, vgaikwad, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 3.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Previously, during the upgrade of the database, a column was added with all null values. This meant the ETL was not able to aggregate this data, since there was no null handling.
Now, the ETL handles null values in the column added, and aggregation works as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-30 18:08:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Aval
2014-01-24 03:16:46 UTC
Ask CU to run this and send the output:
"SELECT
history_id,
history_datetime,
current_user_name,
cast(user_logged_in_to_guest as int),
vm_id,
minutes_in_status,
cpu_usage_percent,
memory_usage_percent,
user_cpu_usage_percent,
system_cpu_usage_percent,
vm_ip,
vm_client_ip,
currently_running_on_host,
vm_configuration_version,
current_host_configuration_version
FROM vm_samples_history
WHERE (vm_status = 1
AND history_datetime >= (SELECT var_datetime
FROM history_configuration
WHERE var_name = 'lastHourAggr'))
AND (history_id IS NULL OR history_datetime IS NULL OR vm_id IS NULL OR minutes_in_status IS NULL)
ORDER BY history_datetime,
current_user_name,
vm_id"
(In reply to Yaniv Dary from comment #1) > Ask CU to run this and send the output: > > "SELECT > history_id, > history_datetime, > current_user_name, > cast(user_logged_in_to_guest as int), > vm_id, > minutes_in_status, > cpu_usage_percent, > memory_usage_percent, > user_cpu_usage_percent, > system_cpu_usage_percent, > vm_ip, > vm_client_ip, > currently_running_on_host, > vm_configuration_version, > current_host_configuration_version > FROM vm_samples_history > WHERE (vm_status = 1 > AND history_datetime >= (SELECT var_datetime > FROM history_configuration > WHERE var_name = 'lastHourAggr')) > AND (history_id IS NULL OR history_datetime IS NULL OR vm_id IS NULL > OR minutes_in_status IS NULL) > ORDER BY history_datetime, > current_user_name, > vm_id" Found the issue. We are issuing a repair async. Yaniv Verification passed: rhevm-dwh-3.3.0-29.el6ev.noarch. Having null value in user_logged_in_to_guest column used to result a NPE exception: Exception in component tMap_12 java.lang.NullPointerException at ovirt_engine_dwh.aggregationtohourly_3_3.AggregationToHourly.tJDBCInput_10Process(AggregationToHourly.java:23218) at ovirt_engine_dwh.aggregationtohourly_3_3.AggregationToHourly$10.run(AggregationToHourly.java:24718) 2014-01-29 18:00:34|vMsUzs|tnh7Ev|jF5YLs|OVIRT_ENGINE_DWH|AggregationToHourly|Default|6|Java Exception|tMap_12|java.lang.NullPointerException:null|1 and statistics_vms_users_usage_hourly wasn't updated. after fix was deployed, there is no error, and all previous data was aggregated. *** Bug 1059678 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0119.html *** Bug 1059764 has been marked as a duplicate of this bug. *** |