Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
CoordinatorActionstart is being called multiple times for same action id for two different workflows as seen below
2013-03-18 19:39:41,815 DEBUG CoordActionStartXCommand:545 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000057-130318185730776-oozie-oozi-C] ACTION[0000057-130318185730776-oozie-oozi-C@1] Updating WF record for WFID :0000471-130318185730776-oozie-oozi-W with parent id: 0000057-130318185730776-oozie-oozi-C@1 2013-03-18 19:39:49,618 DEBUG CoordActionStartXCommand:545 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000057-130318185730776-oozie-oozi-C] ACTION[0000057-130318185730776-oozie-oozi-C@1] Updating WF record for WFID :0000473-130318185730776-oozie-oozi-W with parent id: 0000057-130318185730776-oozie-oozi-C@1
loadState() implementation is blank which makes the verifyPrecondition() check the coordinator action loaded in eagerLoadState(). So the coordinator action might be stale as it was loaded without a lock.
LoadState() should be made to call eagerLoadState() similar to other XCommands.
Another issue is getKey() is not overridden so Multiple Coordactionstart for a given action are not removed as duplicates