Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2465

CoordActionCheckXCommand acquires lock on coord action id

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      @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));
      						......
      

      Only CoordActionCheckXCommand acquire lock on action id. All other action command acquires job id. This can cause race condition.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              puru Purshotam Shah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: