[ https://issues.apache.org/jira/browse/OOZIE-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rohini Palaniswamy updated OOZIE-2023: -------------------------------------- Fix Version/s: 4.1.0 Please check this into 4.1 as well. > 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 > Fix For: 4.1.0 > > 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)