cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-6472) listUsageRecords generates NPEs for expunging instances
Date Tue, 06 May 2014 15:47:15 GMT


ASF subversion and git services commented on CLOUDSTACK-6472:

Commit 3a3457e7132d22f52aa38179d40a6eb9b0b29677 in cloudstack's branch refs/heads/4.4 from
[;h=3a3457e ]

CLOUDSTACK-6472 listUsageRecords: Pull information from removed items as well, fixing NPEs/Null
UUIDs with usage API calls.

> listUsageRecords generates NPEs for expunging instances
> -------------------------------------------------------
>                 Key: CLOUDSTACK-6472
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server, Usage
>    Affects Versions: 4.3.0
>         Environment: linux
>            Reporter: Pierre-Yves Ritschard
>         Attachments: 0001-handle-removed-entities.patch
> The listUsageRecords API command, pulls down the list of usage records in the cloud_usage
database and augments records with information pulled from the cloud database.
> When dealing with instance records, only instances which are do not have a value for
the removed field are considered. Unfortunately, since the output of _entityMgr.findById is
not checked this means that Null Pointer Exceptions are generated when trying to access the
output for expunged VMs.
> The attached patch fixes the issue and applies a similar fix for other similar cases.

This message was sent by Atlassian JIRA

View raw message