-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[server][Action] Reexecute action mechanism. #2472
[server][Action] Reexecute action mechanism. #2472
Conversation
This patch adds a feature that executes unfinished actions when Hatohol server restarts. Currently, when the Hatohol server craashes or quits forcely, running and queued actions aren't taken care on the restart of Hatohol server.
eventOption.setTargetServerId(actionLog.serverId); | ||
eventOption.setEventIds({actionLog.eventId}); | ||
dbMonitoring.getEventInfoList(eventList, eventOption); | ||
if (eventList.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to show warning in this condition ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to show logs
actionOption.setActionIdList(actionIdList); | ||
dbAction.getActionList(actionList, actionOption); | ||
|
||
if (actionList.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
|
||
// Re execute unfinished action | ||
ActionManager actionManager; | ||
actionManager.reExecuteUnfinishedAction(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memo: I've noticed that Hatohol server blocks in this line when bunch of unfinished actions are remained.
But for now, this implementation is no problem to re-execute unfinished actions.
This patch logs an error messages when the event or action is not found and should be merged into the following commit. commit 512ecdc Author: Kazuhiro Yamato <[email protected]> Date: Wed Dec 21 19:39:44 2016 +0900 [server][Action] Reexecute action mechanism.
I added an error messages. |
This is a revised version of #2471
This patch adds a feature that executes unfinished actions
when Hatohol server restarts.
Currently, when the Hatohol server craashes or quits forcely,
running and queued actions aren't taken care on the restart of
Hatohol server.