You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Purshotam Shah (JIRA)" <ji...@apache.org> on 2014/10/02 00:08:33 UTC
[jira] [Assigned] (OOZIE-2023) Job rerun can stuck in prep
[ https://issues.apache.org/jira/browse/OOZIE-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Purshotam Shah reassigned OOZIE-2023:
-------------------------------------
Assignee: Purshotam Shah
> Job rerun can stuck in prep
> ---------------------------
>
> Key: OOZIE-2023
> URL: https://issues.apache.org/jira/browse/OOZIE-2023
> Project: Oozie
> Issue Type: Bug
> Reporter: Purshotam Shah
> Assignee: Purshotam Shah
> Attachments: OOZIE-2023-V1.patch
>
>
> Job rerun is divided into two commands.
> 1. ReRunXCommand, which delete action and set job status to prep.
> 2. StartXCommand, which start WF.
> If ReRunXCommand fails to acquire job lock, it's requeued and oozie will start StartXCommand command. ReRunXCommand will run again ( after/parallel to StartXCommand) when it can acquire lock.
> {code}
> public void reRun(String jobId, Configuration conf) throws DagEngineException {
> try {
> WorkflowJobBean wfBean = WorkflowJobQueryExecutor.getInstance().get(WorkflowJobQuery.GET_WORKFLOW, jobId);
> Configuration wfConf = new XConfiguration(new StringReader(wfBean.getConf()));
> XConfiguration.copy(conf, wfConf);
> validateReRunConfiguration(wfConf);
> new ReRunXCommand(jobId, wfConf).call();
> start(jobId);
> }
> catch (CommandException ex) {
> throw new DagEngineException(ex);
> }
> catch (JPAExecutorException ex) {
> throw new DagEngineException(ex);
> }
> catch (IOException ex) {
> throw new DagEngineException(ErrorCode.E0803, ex.getMessage());
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)