cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-9888) Duplicate usage while processing usage events
Date Thu, 28 Dec 2017 10:53:00 GMT


ASF GitHub Bot commented on CLOUDSTACK-9888:

blueorangutan commented on issue #2058: CLOUDSTACK-9888: Duplicate usage while processing
usage events 
   @rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Duplicate usage while processing usage events
> ---------------------------------------------
>                 Key: CLOUDSTACK-9888
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: jay
> Usage manager start processing  events from current date or last processed event.
> In case of exception, exception is suppressed in the current implementation and usage
server process rest of the events.
> when usage server starts again it picks the unprocessed event (due to exception) and
reports the usage from unprocessed event date.
> To avoid duplication usage server should stop when ever there is an exception.
> code:
>    Date oldestEventDate = events.get(0).getCreateDate();
>                     if (oldestEventDate.getTime() < startDateMillis) {
>                         startDateMillis = oldestEventDate.getTime();
>                         startDate = new Date(startDateMillis);
>                     }

This message was sent by Atlassian JIRA

View raw message