-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18257/#review37475
-----------------------------------------------------------



core/src/main/java/org/apache/oozie/command/bundle/BundleJobChangeXCommand.java
<https://reviews.apache.org/r/18257/#comment69004>

    The check is valid. Please revert this. If the bundle has not even started, 
user can always kill the bundle or suspend the bundle.



core/src/main/java/org/apache/oozie/command/bundle/BundleJobChangeXCommand.java
<https://reviews.apache.org/r/18257/#comment69005>

    This is not a valid use case. This block of code is not required. Please 
revert. 
    
    Changing status of a bundle to suspend needs to be done through 
BundleSuspendXCommand as any coordinators started will have to be suspended.



core/src/main/java/org/apache/oozie/command/coord/CoordChangeXCommand.java
<https://reviews.apache.org/r/18257/#comment69007>

    Please put back up the condition checks. It removes the checks for even 
valid cases. What you need to do is to set end time before start time (or set 
it to be the same as start time which might be better) if no action has been 
materialized at all. 



core/src/main/java/org/apache/oozie/command/coord/CoordChangeXCommand.java
<https://reviews.apache.org/r/18257/#comment69008>

    Not required. lastActionNumber would be null and would not even come into 
this block



core/src/main/java/org/apache/oozie/command/coord/CoordChangeXCommand.java
<https://reviews.apache.org/r/18257/#comment69014>

    Why should we suspend? If the end time was changed again, the coord job 
will not automatically resume.



core/src/main/java/org/apache/oozie/command/coord/CoordChangeXCommand.java
<https://reviews.apache.org/r/18257/#comment69012>

    Why do we need this?



docs/src/site/twiki/DG_CommandLineTool.twiki
<https://reviews.apache.org/r/18257/#comment69015>

    Please put this back. But add a statement, that if end time is before job 
start time and if the job has not materialized any actions end time will be 
automatically corrected and set to the same as start time.


- Rohini Palaniswamy


On Feb. 21, 2014, 10:26 p.m., Purshotam Shah wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/18257/
> -----------------------------------------------------------
> 
> (Updated Feb. 21, 2014, 10:26 p.m.)
> 
> 
> Review request for oozie.
> 
> 
> Bugs: OOZIE-1703
>     https://issues.apache.org/jira/browse/OOZIE-1703
> 
> 
> Repository: oozie-git
> 
> 
> Description
> -------
> 
> This is one of the important use-case in case of versioning.
> 
> User can set end date of old coord/bundle before start date( if coord/bundle 
> is supposed to run in future), so that it doesn't run and user can safely 
> upload new version.
> 
> 
> We should also lookahead at created actions that become invalid because of 
> the new end time.
> These actions should be deleted from DB.
> 
> 
> Diffs
> -----
> 
>   
> core/src/main/java/org/apache/oozie/command/bundle/BundleJobChangeXCommand.java
>  cd2c844 
>   core/src/main/java/org/apache/oozie/command/coord/CoordChangeXCommand.java 
> 4957330 
>   
> core/src/test/java/org/apache/oozie/command/coord/TestCoordChangeXCommand.java
>  b9bbf16 
>   docs/src/site/twiki/DG_CommandLineTool.twiki 0748ff8 
> 
> Diff: https://reviews.apache.org/r/18257/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Purshotam Shah
> 
>

Reply via email to