[ 
https://issues.apache.org/jira/browse/OOZIE-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Purshotam Shah updated OOZIE-2465:
----------------------------------
    Description: 
{code}
@Override
    public String getEntityKey() {
        return actionId;
    }
        
    protected Void execute() throws CommandException {
        .....
        LOG.debug("Updating Coordinator actionId :" + coordAction.getId() + 
"status to ="
                                    + coordAction.getStatus());
                    coordAction.setLastModifiedTime(new Date());
                    updateList.add(new 
UpdateEntry<CoordActionQuery>(CoordActionQuery.UPDATE_COORD_ACTION_STATUS_PENDING_TIME,
                            coordAction));
                                                ......
{code}
Only CoordActionCheckXCommand acquire lock on action id. All other action 
command acquires job id. This can cause race condition.       

> CoordActionCheckXCommand acquires lock on coord action id
> ---------------------------------------------------------
>
>                 Key: OOZIE-2465
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2465
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Purshotam Shah
>
> {code}
> @Override
>     public String getEntityKey() {
>         return actionId;
>     }
>       
>     protected Void execute() throws CommandException {
>       .....
>       LOG.debug("Updating Coordinator actionId :" + coordAction.getId() + 
> "status to ="
>                                   + coordAction.getStatus());
>                   coordAction.setLastModifiedTime(new Date());
>                   updateList.add(new 
> UpdateEntry<CoordActionQuery>(CoordActionQuery.UPDATE_COORD_ACTION_STATUS_PENDING_TIME,
>                           coordAction));
>                                               ......
> {code}
> Only CoordActionCheckXCommand acquire lock on action id. All other action 
> command acquires job id. This can cause race condition.     



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to