You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by Shwetha GS <sh...@inmobi.com> on 2014/02/20 14:03:15 UTC

pending field for bundle action

Hi,

How is pending field used for bundle actions?

I was trying to debug why bundle was running even after it was killed and
didn't understand how is pending used. The bundle was set to RUNNING from
KILLED in StatusTransitService and bundle action was pending and KILLED.

Bundle action pending is incremented in bundle commands and decremented
in BundleStatusUpdateXCommand. But BundleStatusUpdateXCommand just updates
bundle action status because of changes in coord status. So, how is pending
useful for this? What am I missing?

Thanks,
Shwetha

-- 
_____________________________________________________________
The information contained in this communication is intended solely for the 
use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally privileged 
information. If you are not the intended recipient you are hereby notified 
that any disclosure, copying, distribution or taking any action in reliance 
on the contents of this information is strictly prohibited and may be 
unlawful. If you have received this communication in error, please notify 
us immediately by responding to this email and then delete it from your 
system. The firm is neither liable for the proper and complete transmission 
of the information contained in this communication nor for any delay in its 
receipt.

Re: pending field for bundle action

Posted by Virag Kothari <vi...@yahoo-inc.com>.
Hi,

Pending flag is set when the kill/suspend/resume commands are issued to
the bundle and it is
reset when the underlying coordinators have actually been
killed/suspended/resumed.
The underlying coordinators
call BundleStatusUpdateX to keep the status of bundle actions and
coordinator in sync. Additionally, it would
usually reset the pending flag because the status of bundle action is no
longer pending (as its status is same with the coord)

Thanks,
virag

On 2/20/14 5:03 AM, "Shwetha GS" <sh...@inmobi.com> wrote:

>Hi,
>
>How is pending field used for bundle actions?
>
>I was trying to debug why bundle was running even after it was killed and
>didn't understand how is pending used. The bundle was set to RUNNING from
>KILLED in StatusTransitService and bundle action was pending and KILLED.
>
>Bundle action pending is incremented in bundle commands and decremented
>in BundleStatusUpdateXCommand. But BundleStatusUpdateXCommand just updates
>bundle action status because of changes in coord status. So, how is
>pending
>useful for this? What am I missing?
>
>Thanks,
>Shwetha
>
>-- 
>_____________________________________________________________
>The information contained in this communication is intended solely for
>the 
>use of the individual or entity to whom it is addressed and others
>authorized to receive it. It may contain confidential or legally
>privileged 
>information. If you are not the intended recipient you are hereby
>notified 
>that any disclosure, copying, distribution or taking any action in
>reliance 
>on the contents of this information is strictly prohibited and may be
>unlawful. If you have received this communication in error, please notify
>us immediately by responding to this email and then delete it from your
>system. The firm is neither liable for the proper and complete
>transmission 
>of the information contained in this communication nor for any delay in
>its 
>receipt.