You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by mo...@apache.org on 2013/08/27 21:47:02 UTC
svn commit: r1517955 - in /oozie/branches/branch-4.0:
core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.java
core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXCommand.java
release-log.txt
Author: mona
Date: Tue Aug 27 19:47:02 2013
New Revision: 1517955
URL: http://svn.apache.org/r1517955
Log:
OOZIE-1514 Rerunning a coordinator with no input dependencies puts actions in WAITING instead of READY and proceeding (bowenzhangusa via mona)
Modified:
oozie/branches/branch-4.0/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.java
oozie/branches/branch-4.0/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXCommand.java
oozie/branches/branch-4.0/release-log.txt
Modified: oozie/branches/branch-4.0/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.java
URL: http://svn.apache.org/viewvc/oozie/branches/branch-4.0/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.java?rev=1517955&r1=1517954&r2=1517955&view=diff
==============================================================================
--- oozie/branches/branch-4.0/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.java (original)
+++ oozie/branches/branch-4.0/core/src/main/java/org/apache/oozie/command/coord/CoordActionInputCheckXCommand.java Tue Aug 27 19:47:02 2013
@@ -141,8 +141,8 @@ public class CoordActionInputCheckXComma
nonExistList.append(CoordCommandUtils.RESOLVED_UNRESOLVED_SEPARATOR).append(nonResolvedList);
}
String nonExistListStr = nonExistList.toString();
- if (!nonExistListStr.equals(missingDeps)) {
- // missingDeps null means action should become READY
+ if (!nonExistListStr.equals(missingDeps) || missingDeps.isEmpty()) {
+ // missingDeps null or empty means action should become READY
isChangeInDependency = true;
coordAction.setMissingDependencies(nonExistListStr);
}
Modified: oozie/branches/branch-4.0/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXCommand.java
URL: http://svn.apache.org/viewvc/oozie/branches/branch-4.0/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXCommand.java?rev=1517955&r1=1517954&r2=1517955&view=diff
==============================================================================
--- oozie/branches/branch-4.0/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXCommand.java (original)
+++ oozie/branches/branch-4.0/core/src/test/java/org/apache/oozie/command/coord/TestCoordActionInputCheckXCommand.java Tue Aug 27 19:47:02 2013
@@ -695,6 +695,26 @@ public class TestCoordActionInputCheckXC
fail("Action ID " + coordJob.getId() + "@1" + " was not stored properly in db");
}
assertEquals(action.getStatus(), CoordinatorAction.Status.READY);
+
+ action.setMissingDependencies("");
+ action.setStatus(CoordinatorAction.Status.WAITING);
+ try {
+ jpaService = Services.get().get(JPAService.class);
+ jpaService.execute(new CoordActionUpdateForInputCheckJPAExecutor(action));
+ }
+ catch (JPAExecutorException se) {
+ fail("Action ID " + coordJob.getId() + "@1" + " was not stored properly in db");
+ }
+
+ new CoordActionInputCheckXCommand(coordJob.getId() + "@1", coordJob.getId()).call();
+ try {
+ jpaService = Services.get().get(JPAService.class);
+ action = jpaService.execute(new CoordActionGetJPAExecutor(coordJob.getId() + "@1"));
+ }
+ catch (JPAExecutorException se) {
+ fail("Action ID " + coordJob.getId() + "@1" + " was not stored properly in db");
+ }
+ assertEquals(action.getStatus(), CoordinatorAction.Status.READY);
}
@Test
Modified: oozie/branches/branch-4.0/release-log.txt
URL: http://svn.apache.org/viewvc/oozie/branches/branch-4.0/release-log.txt?rev=1517955&r1=1517954&r2=1517955&view=diff
==============================================================================
--- oozie/branches/branch-4.0/release-log.txt (original)
+++ oozie/branches/branch-4.0/release-log.txt Tue Aug 27 19:47:02 2013
@@ -1,5 +1,6 @@
-- Oozie 4.0.0 release
+OOZIE-1514 Rerunning a coordinator with no input dependencies puts actions in WAITING instead of READY and proceeding (bowenzhangusa via mona)
OOZIE-1510 Fix branch-4.0 compilation (mona)
OOZIE-1507 Command queue filling up with duplicate commands from RecoveryService (rohini)
OOZIE-1502 Coordinator Job not going to Failed if a bad HCat-uri is specified (mona)