abh1sar commented on issue #12383: URL: https://github.com/apache/cloudstack/issues/12383#issuecomment-3786174102
This is because Usage-server-2 doesn't take over the processing from Usage-server-1 if Usage-server-1 is shutdown gracefully. When usage-server-1 shuts down gracefully, the AbandonJob shutdown hook deletes all the open jobs. When usage-server-2 runs its heartbeat, getNextRecurringJob() returns null (job was deleted), so no takeover occurs. In case of an abrupt shutdown, the open Job owned by Usage-server-1 would still be existing. Heartbeat check from usage-server-2 would have takeover 5 mins after the heartbeat in the last undeleted job. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
